Fork me on GitHub

bolero.behavior_search.BehaviorSearch

class bolero.behavior_search.BehaviorSearch[source]

BehaviorSearch (learning algorithm) interface.

__init__()

x.__init__(…) initializes x; see help(type(x)) for signature

get_args()

Get parameters for this estimator.

Returns:
params : mapping of string to any

Parameter names mapped to their values.

get_behavior_from_results(result_path)[source]

Recover search state from file.

Parameters:
result_path : string

path in which we search for the file

get_best_behavior()[source]

Returns the best behavior found so far.

Returns:
behavior : Behavior

mapping from input to output

get_next_behavior()[source]

Obtain next behavior for evaluation.

Returns:
behavior : Behavior

mapping from input to output

init(n_inputs, n_outputs)[source]

Initialize the behavior search.

Parameters:
n_inputs : int

number of inputs of the behavior

n_outputs : int

number of outputs of the behavior

is_behavior_learning_done()[source]

Check if the behavior learning is finished, e.g. it converged.

Returns:
finished : bool

Is the learning of a behavior finished?

set_evaluation_feedback(feedbacks)[source]

Set feedback for the last behavior.

Parameters:
feedbacks : list of float

feedback for each step or for the episode, depends on the problem

write_results(result_path)[source]

Store current search state.

Parameters:
result_path : string

path in which the state should be stored