Struct border_tch_agent::iqn::IqnModelConfig
source · [−]pub struct IqnModelConfig<F, M> where
M: OutDim, {
pub feature_dim: i64,
pub embed_dim: i64,
pub f_config: Option<F>,
pub m_config: Option<M>,
pub opt_config: OptimizerConfig,
}Expand description
Configuration of IqnModel.
The type parameter F represents a configuration struct of a feature extractor.
The type parameter M represents a configuration struct of a model for merging
cosine-embedded percent points and feature vectors.
Fields
feature_dim: i64Dimension of feature vector.
embed_dim: i64Embedding dimension.
f_config: Option<F>Configuration of feature extractor.
m_config: Option<M>Configuration of a model for merging percentils and feature vectors.
opt_config: OptimizerConfigConfiguration of optimizer.
Implementations
impl<F, M> IqnModelConfig<F, M> where
F: DeserializeOwned + Serialize,
M: DeserializeOwned + Serialize + OutDim,
impl<F, M> IqnModelConfig<F, M> where
F: DeserializeOwned + Serialize,
M: DeserializeOwned + Serialize + OutDim,
Sets the learning rate.
impl<F, M> IqnModelConfig<F, M> where
F: DeserializeOwned + Serialize,
M: DeserializeOwned + Serialize + OutDim,
impl<F, M> IqnModelConfig<F, M> where
F: DeserializeOwned + Serialize,
M: DeserializeOwned + Serialize + OutDim,
Sets the dimension of feature vectors.
Sets optimizer configuration.
Trait Implementations
impl<'de, F, M> Deserialize<'de> for IqnModelConfig<F, M> where
M: OutDim,
F: Deserialize<'de>,
M: Deserialize<'de>,
impl<'de, F, M> Deserialize<'de> for IqnModelConfig<F, M> where
M: OutDim,
F: Deserialize<'de>,
M: Deserialize<'de>,
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
impl<F: PartialEq, M: PartialEq> PartialEq<IqnModelConfig<F, M>> for IqnModelConfig<F, M> where
M: OutDim,
impl<F: PartialEq, M: PartialEq> PartialEq<IqnModelConfig<F, M>> for IqnModelConfig<F, M> where
M: OutDim,
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<F, M> RefUnwindSafe for IqnModelConfig<F, M> where
F: RefUnwindSafe,
M: RefUnwindSafe,
impl<F, M> Send for IqnModelConfig<F, M> where
F: Send,
M: Send,
impl<F, M> Sync for IqnModelConfig<F, M> where
F: Sync,
M: Sync,
impl<F, M> Unpin for IqnModelConfig<F, M> where
F: Unpin,
M: Unpin,
impl<F, M> UnwindSafe for IqnModelConfig<F, M> where
F: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more