eta_utility.eta_x.common.callbacks module

class eta_utility.eta_x.common.callbacks.CallbackEnvironment(plot_interval: int)[source]

Bases: object

This callback should be called at the end of each episode. When multiprocessing is used, no global variables are available (as an own python instance is created).

Parameters:

plot_interval – How many episodes to pass between each render call.

eta_utility.eta_x.common.callbacks.merge_callbacks(*args: MaybeCallback) CallbackList[source]

Take a number of arguments and merge them into a CallbackList object if they instantiate BaseCallback.

Parameters:

args – List of callbacks.

Returns:

CallbackList object which merges all callbacks.