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§
Source§impl<F, M> IqnModelConfig<F, M>
impl<F, M> IqnModelConfig<F, M>
Sourcepub fn learning_rate(self, v: f64) -> Self
pub fn learning_rate(self, v: f64) -> Self
Sets the learning rate.
Source§impl<F, M> IqnModelConfig<F, M>
impl<F, M> IqnModelConfig<F, M>
Sourcepub fn feature_dim(self, v: i64) -> Self
pub fn feature_dim(self, v: i64) -> Self
Sets the dimension of feature vectors.
Sourcepub fn opt_config(self, v: OptimizerConfig) -> Self
pub fn opt_config(self, v: OptimizerConfig) -> Self
Sets optimizer configuration.
Trait Implementations§
Source§impl<F: Clone, M> Clone for IqnModelConfig<F, M>
impl<F: Clone, M> Clone for IqnModelConfig<F, M>
Source§fn clone(&self) -> IqnModelConfig<F, M>
fn clone(&self) -> IqnModelConfig<F, M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug, M> Debug for IqnModelConfig<F, M>
impl<F: Debug, M> Debug for IqnModelConfig<F, M>
Source§impl<F, M> Default for IqnModelConfig<F, M>where
M: OutDim,
impl<F, M> Default for IqnModelConfig<F, M>where
M: OutDim,
Source§impl<'de, F, M> Deserialize<'de> for IqnModelConfig<F, M>
impl<'de, F, M> Deserialize<'de> for IqnModelConfig<F, M>
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: PartialEq, M> PartialEq for IqnModelConfig<F, M>
impl<F: PartialEq, M> PartialEq for IqnModelConfig<F, M>
Source§impl<F, M> Serialize for IqnModelConfig<F, M>
impl<F, M> Serialize for IqnModelConfig<F, M>
impl<F, M> StructuralPartialEq for IqnModelConfig<F, M>where
M: OutDim,
Auto Trait Implementations§
impl<F, M> Freeze for IqnModelConfig<F, M>
impl<F, M> RefUnwindSafe for IqnModelConfig<F, M>where
F: RefUnwindSafe,
M: RefUnwindSafe,
impl<F, M> Send for IqnModelConfig<F, M>
impl<F, M> Sync for IqnModelConfig<F, M>
impl<F, M> Unpin for IqnModelConfig<F, M>
impl<F, M> UnwindSafe for IqnModelConfig<F, M>where
F: UnwindSafe,
M: 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