tbp.monty.experiment#

tbp.monty.experiment.environment#

tbp.monty.experiment.learning_module#

class ExperimentLearningModule(*args, **kwargs)[source]#

Bases: Protocol

Experiment interface to a Learning Module.

__init__(*args, **kwargs)#
fixme_reset_ground_truth(primary_target=None) None[source]#

Reset internal state based on ground truth.

Parameters:

primary_target – The primary target for the learning module to recognize.

Return type:

None

fixme_update_ground_truth() None[source]#

Update internal state based on ground truth.

Return type:

None

reset_stm() None[source]#

Reset short-term memory buffer.

Do things like reset buffers or possible_matches before training.

Return type:

None

set_experiment_mode(mode: ExperimentMode) None[source]#

Set the experiment mode.

Update state variables based on which method (train or evaluate) is being called at the experiment level.

Parameters:

mode (ExperimentMode) – The experiment mode.

Return type:

None

update_ltm_from_stm() None[source]#

Update long-term memory from short-term memory buffer.

Return type:

None

tbp.monty.experiment.motor_system#

class ExperimentMotorPolicy(*args, **kwargs)[source]#

Bases: Protocol

Experiment interface to a Motor Policy.

__init__(*args, **kwargs)#
reset(motor_system: ExperimentMotorSystem) None[source]#

Reset the internal state of this Motor Policy.

Parameters:

motor_system (ExperimentMotorSystem) – The associated Motor System.

Return type:

None

class ExperimentMotorPolicySelector(*args, **kwargs)[source]#

Bases: Protocol

Experiment interface to a Motor Policy Selector.

__init__(*args, **kwargs)#
reset(motor_system: ExperimentMotorSystem) None[source]#

Reset the internal state of this Motor Policy Selector.

Parameters:

motor_system (ExperimentMotorSystem) – The associated Motor System.

Return type:

None

class ExperimentMotorSystem(*args, **kwargs)[source]#

Bases: Protocol

Experiment interface to a Motor System.

__init__(*args, **kwargs)#
reset() None[source]#

Reset the internal state of this Motor System.

Return type:

None

property motor_only_step: bool#

When True, suppress Learning Module processing.

tbp.monty.experiment.sensor_module#

class ExperimentSensorModule(*args, **kwargs)[source]#

Bases: Protocol

Experiment interface to a Sensor Module.

__init__(*args, **kwargs)#
reset() None[source]#

Reset the internal state of this Sensor Module.

Return type:

None