The PyCmaSampler #11
fsmosca
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
optuna.integration.PyCmaSampler
https://optuna.readthedocs.io/en/stable/reference/generated/optuna.integration.PyCmaSampler.html#optuna-integration-pycmasampler
OGPT (Optuna Game Parameter Tuner) so far support sigma0 parameter as option.
What is sigma0?
Further in cma api:
Be smart when using cmaes sampler
Imagine you are optimizing the value of a parameter with initial value of 75 and you are confident that the optimal value lies in [50, 100].
The optimizer would then make more samples close to 75 - 3x8.3 and 75 + 3x8.3, or in the window [50, 100] to be tried by the objective function.
An example where we have 2 parameters to optimize
Now cmaes would think that the best:
Here is the problem, what if the best param_a is actually 90, in this case more sampling are tried in the range [70, 80] thereby wasting time, it might get to 90 eventually as the sigma0 is just an initial sigma that cmaes would use.
To solve such issue OGPT now supports the sigma0 parameter overriding the default min_range/6.
We can try to use sigma0=6 for example.
--sampler name=cmaes sigma0=6
The best:
In the future, OGPT will expose the param to the user where sigma0 can be controlled by the user per parameter.
At the moment avoid mixing param with very high and very low parameter range or else try to apply sigma0=value.
Note sigma0 should not exceed the minimum range. In our example it should not be more than 10.
Beta Was this translation helpful? Give feedback.
All reactions