pub struct AsyncTrainerConfig {
pub max_opts: usize,
pub eval_interval: usize,
pub flush_record_interval: usize,
pub record_compute_cost_interval: usize,
pub record_agent_info_interval: usize,
pub save_interval: usize,
pub sync_interval: usize,
pub warmup_period: usize,
}
Expand description
Configuration of AsyncTrainer
.
Fields§
§max_opts: usize
The maximum number of optimization steps.
eval_interval: usize
Interval of evaluation in training steps.
flush_record_interval: usize
Interval of flushing records in optimization steps.
record_compute_cost_interval: usize
Interval of recording agent information in optimization steps.
record_agent_info_interval: usize
Interval of recording agent information in optimization steps.
save_interval: usize
Interval of saving the model in optimization steps.
sync_interval: usize
Interval of synchronizing model parameters in training steps.
warmup_period: usize
Warmup period, for filling replay buffer, in environment steps
Implementations§
Source§impl AsyncTrainerConfig
impl AsyncTrainerConfig
Sourcepub fn eval_interval(self, v: usize) -> Result<Self>
pub fn eval_interval(self, v: usize) -> Result<Self>
Sets the interval of evaluation in optimization steps.
Sourcepub fn record_compute_cost_interval(
self,
record_compute_cost_interval: usize,
) -> Result<Self>
pub fn record_compute_cost_interval( self, record_compute_cost_interval: usize, ) -> Result<Self>
Sets the interval of computation cost in optimization steps.
Sourcepub fn flush_record_interval(self, flush_record_interval: usize) -> Result<Self>
pub fn flush_record_interval(self, flush_record_interval: usize) -> Result<Self>
Sets the interval of flushing recordd in optimization steps.
Sourcepub fn warmup_period(self, warmup_period: usize) -> Result<Self>
pub fn warmup_period(self, warmup_period: usize) -> Result<Self>
Sets warmup period in environment steps.
Sourcepub fn save_interval(self, save_interval: usize) -> Result<Self>
pub fn save_interval(self, save_interval: usize) -> Result<Self>
Sets the interval of saving in optimization steps.
Sourcepub fn sync_interval(self, sync_interval: usize) -> Result<Self>
pub fn sync_interval(self, sync_interval: usize) -> Result<Self>
Sets the interval of synchronizing model parameters in training steps.
Trait Implementations§
Source§impl Clone for AsyncTrainerConfig
impl Clone for AsyncTrainerConfig
Source§fn clone(&self) -> AsyncTrainerConfig
fn clone(&self) -> AsyncTrainerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more