bolero.environment.ContextualEnvironment¶bolero.environment.ContextualEnvironment[source]¶Common interface for (contextual) environments.
__init__()¶x.__init__(…) initializes x; see help(type(x)) for signature
get_args()¶Get parameters for this estimator.
| Returns: |
|
|---|
get_feedback()¶Get the feedbacks for the last evaluation period.
| Returns: |
|
|---|
get_maximum_feedback(context)[source]¶Returns the maximum sum of feedbacks obtainable in given context.
get_num_inputs()¶Get number of environment inputs.
| Parameters: |
|
|---|
get_num_outputs()¶Get number of environment outputs.
| Parameters: |
|
|---|
get_outputs(values)¶Get environment outputs, e.g. state of the environment.
| Parameters: |
|
|---|
init()¶Initialize environment.
is_behavior_learning_done()¶Check if the behavior learning is finished.
| Returns: |
|
|---|
is_evaluation_done()¶Check if the evaluation of the behavior is finished.
| Returns: |
|
|---|
request_context(context)[source]¶Request that a specific context is used.
| Parameters: |
|
|---|---|
| Returns: |
|
reset()¶Reset state of the environment.
set_inputs(values)¶Set environment inputs, e.g. next action.
| Parameters: |
|
|---|
step_action()¶Take a step in the environment.