From 3323b0f08dfa7b38e8f1208d4ced26c0d1f95265 Mon Sep 17 00:00:00 2001 From: y0z Date: Fri, 15 Nov 2024 14:46:38 +0900 Subject: [PATCH] Introduce early detection for dependencies --- package/samplers/auto_sampler/_sampler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/samplers/auto_sampler/_sampler.py b/package/samplers/auto_sampler/_sampler.py index 55669274..8815ee8f 100644 --- a/package/samplers/auto_sampler/_sampler.py +++ b/package/samplers/auto_sampler/_sampler.py @@ -6,6 +6,7 @@ from typing import Any from typing import TYPE_CHECKING +import cmaes as _ # NOQA from optuna.distributions import CategoricalDistribution from optuna.logging import get_logger from optuna.samplers import BaseSampler @@ -18,6 +19,8 @@ from optuna.samplers._lazy_random_state import LazyRandomState from optuna.search_space import IntersectionSearchSpace from optuna.trial import TrialState +import scipy as _ # NOQA +import torch as _ # NOQA if TYPE_CHECKING: