Struct border_tch_agent::iqn::IqnConfig
source · pub struct IqnConfig<F, M>where
F: SubModel,
M: SubModel,
F::Config: DeserializeOwned + Serialize + Clone,
M::Config: DeserializeOwned + Serialize + Clone + OutDim,{
pub device: Option<Device>,
/* private fields */
}Expand description
Configuration of Iqn agent.
Fields§
§device: Option<Device>Implementations§
source§impl<F, M> IqnConfig<F, M>where
F: SubModel,
M: SubModel,
F::Config: DeserializeOwned + Serialize + Clone,
M::Config: DeserializeOwned + Serialize + Clone + OutDim,
impl<F, M> IqnConfig<F, M>where F: SubModel, M: SubModel, F::Config: DeserializeOwned + Serialize + Clone, M::Config: DeserializeOwned + Serialize + Clone + OutDim,
sourcepub fn model_config(
self,
model_config: IqnModelConfig<F::Config, M::Config>
) -> Self
pub fn model_config( self, model_config: IqnModelConfig<F::Config, M::Config> ) -> Self
Sets the configuration of the model.
sourcepub fn soft_update_interval(self, v: usize) -> Self
pub fn soft_update_interval(self, v: usize) -> Self
Set soft update interval.
sourcepub fn n_updates_per_opt(self, v: usize) -> Self
pub fn n_updates_per_opt(self, v: usize) -> Self
Set numper of parameter update steps per optimization step.
sourcepub fn min_transitions_warmup(self, v: usize) -> Self
pub fn min_transitions_warmup(self, v: usize) -> Self
Interval before starting optimization.
sourcepub fn batch_size(self, v: usize) -> Self
pub fn batch_size(self, v: usize) -> Self
Batch size.
sourcepub fn discount_factor(self, v: f64) -> Self
pub fn discount_factor(self, v: f64) -> Self
Discount factor.
sourcepub fn explorer(self, v: IqnExplorer) -> Self
pub fn explorer(self, v: IqnExplorer) -> Self
Set explorer.
sourcepub fn sample_percent_pred(self, v: IqnSample) -> Self
pub fn sample_percent_pred(self, v: IqnSample) -> Self
Sampling percent points.
sourcepub fn sample_percent_tgt(self, v: IqnSample) -> Self
pub fn sample_percent_tgt(self, v: IqnSample) -> Self
Sampling percent points.
sourcepub fn sample_percent_act(self, v: IqnSample) -> Self
pub fn sample_percent_act(self, v: IqnSample) -> Self
Sampling percent points.
Trait Implementations§
source§impl<F, M> Clone for IqnConfig<F, M>where
F: SubModel,
M: SubModel,
F::Config: DeserializeOwned + Serialize + Clone,
M::Config: DeserializeOwned + Serialize + Clone + OutDim,
impl<F, M> Clone for IqnConfig<F, M>where F: SubModel, M: SubModel, F::Config: DeserializeOwned + Serialize + Clone, M::Config: DeserializeOwned + Serialize + Clone + OutDim,
source§impl<F, M> Debug for IqnConfig<F, M>where
F: SubModel + Debug,
M: SubModel + Debug,
F::Config: DeserializeOwned + Serialize + Clone + Debug,
M::Config: DeserializeOwned + Serialize + Clone + OutDim + Debug,
impl<F, M> Debug for IqnConfig<F, M>where F: SubModel + Debug, M: SubModel + Debug, F::Config: DeserializeOwned + Serialize + Clone + Debug, M::Config: DeserializeOwned + Serialize + Clone + OutDim + Debug,
source§impl<F, M> Default for IqnConfig<F, M>where
F: SubModel,
M: SubModel,
F::Config: DeserializeOwned + Serialize + Clone,
M::Config: DeserializeOwned + Serialize + Clone + OutDim,
impl<F, M> Default for IqnConfig<F, M>where F: SubModel, M: SubModel, F::Config: DeserializeOwned + Serialize + Clone, M::Config: DeserializeOwned + Serialize + Clone + OutDim,
source§impl<'de, F, M> Deserialize<'de> for IqnConfig<F, M>where
F: SubModel,
M: SubModel,
F::Config: DeserializeOwned + Serialize + Clone,
M::Config: DeserializeOwned + Serialize + Clone + OutDim,
impl<'de, F, M> Deserialize<'de> for IqnConfig<F, M>where F: SubModel, M: SubModel, F::Config: DeserializeOwned + Serialize + Clone, M::Config: DeserializeOwned + Serialize + Clone + OutDim,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<F, M> PartialEq<IqnConfig<F, M>> for IqnConfig<F, M>where
F: SubModel + PartialEq,
M: SubModel + PartialEq,
F::Config: DeserializeOwned + Serialize + Clone + PartialEq,
M::Config: DeserializeOwned + Serialize + Clone + OutDim + PartialEq,
impl<F, M> PartialEq<IqnConfig<F, M>> for IqnConfig<F, M>where F: SubModel + PartialEq, M: SubModel + PartialEq, F::Config: DeserializeOwned + Serialize + Clone + PartialEq, M::Config: DeserializeOwned + Serialize + Clone + OutDim + PartialEq,
source§impl<F, M> Serialize for IqnConfig<F, M>where
F: SubModel,
M: SubModel,
F::Config: DeserializeOwned + Serialize + Clone,
M::Config: DeserializeOwned + Serialize + Clone + OutDim,
impl<F, M> Serialize for IqnConfig<F, M>where F: SubModel, M: SubModel, F::Config: DeserializeOwned + Serialize + Clone, M::Config: DeserializeOwned + Serialize + Clone + OutDim,
impl<F, M> StructuralPartialEq for IqnConfig<F, M>where F: SubModel, M: SubModel, F::Config: DeserializeOwned + Serialize + Clone, M::Config: DeserializeOwned + Serialize + Clone + OutDim,
Auto Trait Implementations§
impl<F, M> RefUnwindSafe for IqnConfig<F, M>where F: RefUnwindSafe, M: RefUnwindSafe, <F as SubModel>::Config: RefUnwindSafe, <M as SubModel>::Config: RefUnwindSafe,
impl<F, M> Send for IqnConfig<F, M>where F: Send, M: Send, <F as SubModel>::Config: Send, <M as SubModel>::Config: Send,
impl<F, M> Sync for IqnConfig<F, M>where F: Sync, M: Sync, <F as SubModel>::Config: Sync, <M as SubModel>::Config: Sync,
impl<F, M> Unpin for IqnConfig<F, M>where F: Unpin, M: Unpin, <F as SubModel>::Config: Unpin, <M as SubModel>::Config: Unpin,
impl<F, M> UnwindSafe for IqnConfig<F, M>where F: UnwindSafe, M: UnwindSafe, <F as SubModel>::Config: UnwindSafe, <M as SubModel>::Config: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more