nip.scenario_base.environment.Environment#
- class nip.scenario_base.environment.Environment(hyper_params: HyperParameters, settings: ExperimentSettings, dataset: Dataset, protocol_handler: ProtocolHandler)[source]#
The base class for all Prover-Verifier RL environments.
- Parameters:
hyper_params (HyperParameters) – The parameters of the experiment.
settings (ExperimentSettings) – The settings of the experiment.
dataset (Dataset) – The dataset for the environment.
protocol_handler (ProtocolHandler) – The protocol handler for the environment.
Methods Summary
__init__(hyper_params, settings, dataset, ...)reset([env_state])Reset the environment.
step(env_state)Perform a step in the environment.
Attributes
action_specThe specification for the action keys.
batch_sizeThe batch size of the environment.
done_specThe specification for the done keys (done and terminated).
frames_per_batchThe number of frames to sample per training iteration.
num_envsThe number of batched environments.
observation_specThe specification for the observation keys.
reward_specThe specification for the agent reward keys.
splitThe split of the dataset used for the environment.
state_specThe specification for the state keys.
steps_per_env_per_iterationThe number of steps per batched environment in each iteration.
Methods
- __init__(hyper_params: HyperParameters, settings: ExperimentSettings, dataset: Dataset, protocol_handler: ProtocolHandler)[source]#