DQNState
python
DQNState(learner_model_state_dict: dict[str, Any], target_model_state_dict: dict[str, Any], optimizer_state_dict: dict[str, Any], steps: int, learner_iterations: int, target_updates: int, total_time: float, episode_totals: AgentEpisodeTotalsState = AgentEpisodeTotalsState(), total_skipped_updates: int = 0, total_rollbacks: int = 0, tester_episode_totals: AgentEpisodeTotalsState = AgentEpisodeTotalsState(), trajectory_state_dict: dict[str, Any] | None = None) -> NoneDataclass for storing the complete state of a DQN experiment.
Values
episode_totals
python
episode_totals: AgentEpisodeTotalsState = field(default_factory=AgentEpisodeTotalsState)learner_iterations
python
learner_iterations: intlearner_model_state_dict
python
learner_model_state_dict: dict[str, Any]optimizer_state_dict
python
optimizer_state_dict: dict[str, Any]steps
python
steps: inttarget_model_state_dict
python
target_model_state_dict: dict[str, Any]target_updates
python
target_updates: inttester_episode_totals
python
tester_episode_totals: AgentEpisodeTotalsState = field(default_factory=AgentEpisodeTotalsState)total_rollbacks
python
total_rollbacks: int = 0total_skipped_updates
python
total_skipped_updates: int = 0total_time
python
total_time: floattrajectory_state_dict
python
trajectory_state_dict: dict[str, Any] | None = None