tbp.monty.experiment#
tbp.monty.experiment.environment#
tbp.monty.experiment.learning_module#
- class ExperimentLearningModule(*args, **kwargs)[source]#
Bases:
ProtocolExperiment 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:
- reset_stm() None[source]#
Reset short-term memory buffer.
Do things like reset buffers or possible_matches before training.
- Return type:
- 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:
tbp.monty.experiment.monty#
- class ExperimentMonty(*args, **kwargs)[source]#
Bases:
ProtocolExperiment interface to Monty model.
- __init__(*args, **kwargs)#
- fixme_set_ground_truth(primary_target: dict[str, Any] | None = None, semantic_id_to_label: dict[SemanticID, str] | None = None) None[source]#
Provide ground truth from experiment supervision.
- Parameters:
primary_target – Optional primary target to recognize.
semantic_id_to_label – Optional mapping from IDs to labels.
- 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:
tbp.monty.experiment.motor_system#
- class ExperimentMotorPolicy(*args, **kwargs)[source]#
Bases:
ProtocolExperiment interface to a Motor Policy.
- __init__(*args, **kwargs)#
- fixme_provide_motor_system(motor_system: ExperimentMotorSystem) None[source]#
Provide access to the Motor System during initialization.
This is part of the work to remove reset() in favor or Hydra instantiation. It is used to provide a reference to the Motor System so the SurfacePolicy and its subclasses can override the motor_only_step property.
TODO: This whole mechanism is a hack for the benefit of SurfacePolicy et. al. What we should be doing is supporting more complex actions, like “follow surface in this direction,” whose details are left to the simulator.
- Parameters:
motor_system (
ExperimentMotorSystem) – The associated Motor System.- Return type:
- class ExperimentMotorPolicySelector(*args, **kwargs)[source]#
Bases:
ProtocolExperiment interface to a Motor Policy Selector.
- __init__(*args, **kwargs)#
- fixme_provide_motor_system(motor_system: ExperimentMotorSystem) None[source]#
Provide access to the Motor System during initialization.
This is part of the work to remove reset() in favor or Hydra instantiation. It is used to provide a reference to the Motor System so the SurfacePolicy and its subclasses can override the motor_only_step property.
TODO: This whole mechanism is a hack for the benefit of SurfacePolicy et. al. What we should be doing is supporting more complex actions, like “follow surface in this direction,” whose details are left to the simulator.
- Parameters:
motor_system (
ExperimentMotorSystem) – The associated Motor System.- Return type: