bolero.optimizer
.ContextualOptimizer¶bolero.optimizer.
ContextualOptimizer
[source]¶Common interface for (contextual) optimizers.
This is a simple derivative-free parameter optimizer.
__init__
()¶x.__init__(…) initializes x; see help(type(x)) for signature
best_policy
()[source]¶Return current best estimate of contextual policy.
Returns: |
|
---|
get_args
()¶Get parameters for this estimator.
Returns: |
|
---|
get_desired_context
()[source]¶Chooses desired context for next evaluation.
Returns: |
|
---|
get_next_parameters
(params)[source]¶Get next individual/parameter vector for evaluation.
Parameters: |
|
---|
init
(n_params, n_context_dims)[source]¶Initialize optimizer.
Parameters: |
|
---|
is_behavior_learning_done
()[source]¶Check if the optimization is finished.
Returns: |
|
---|