We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bef025e commit ca53af3Copy full SHA for ca53af3
package/samplers/user_prior_cmaes/sampler.py
@@ -2,6 +2,7 @@
2
3
import math
4
from typing import Any
5
+from typing import Union
6
7
import cmaes
8
import numpy as np
@@ -12,11 +13,13 @@
12
13
from optuna.distributions import IntDistribution
14
from optuna.samplers import BaseSampler
15
from optuna.samplers import CmaEsSampler
-from optuna.samplers._cmaes import CmaClass
16
from optuna.study import StudyDirection
17
from optuna.trial import FrozenTrial
18
19
20
+CmaClass = Union[cmaes.CMA, cmaes.SepCMA, cmaes.CMAwM]
21
+
22
23
class UserPriorCmaEsSampler(CmaEsSampler):
24
"""A sampler using `cmaes <https://github.com/CyberAgentAILab/cmaes>`__ as the backend with user prior.
25
0 commit comments