pub struct MultiCriticConfig<Q> {
pub n_nets: usize,
pub q_config: Option<Q>,
pub opt_config: OptimizerConfig,
pub tau: f64,
}Expand description
Configuration of MultiCritic.
Fields§
§n_nets: usizeThe number of critic networks.
q_config: Option<Q>Configuration of critic networks.
opt_config: OptimizerConfigConfiguration of the optimizer.
tau: f64Soft update coefficient.
Implementations§
Source§impl<Q> MultiCriticConfig<Q>where
Q: DeserializeOwned + Serialize,
impl<Q> MultiCriticConfig<Q>where
Q: DeserializeOwned + Serialize,
Sourcepub fn opt_config(self, v: OptimizerConfig) -> Self
pub fn opt_config(self, v: OptimizerConfig) -> Self
Sets optimizer configuration.
Trait Implementations§
Source§impl<Q: Clone> Clone for MultiCriticConfig<Q>
impl<Q: Clone> Clone for MultiCriticConfig<Q>
Source§fn clone(&self) -> MultiCriticConfig<Q>
fn clone(&self) -> MultiCriticConfig<Q>
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<Q: Debug> Debug for MultiCriticConfig<Q>
impl<Q: Debug> Debug for MultiCriticConfig<Q>
Source§impl<Q> Default for MultiCriticConfig<Q>
impl<Q> Default for MultiCriticConfig<Q>
Source§impl<'de, Q> Deserialize<'de> for MultiCriticConfig<Q>where
Q: Deserialize<'de>,
impl<'de, Q> Deserialize<'de> for MultiCriticConfig<Q>where
Q: Deserialize<'de>,
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<Q: PartialEq> PartialEq for MultiCriticConfig<Q>
impl<Q: PartialEq> PartialEq for MultiCriticConfig<Q>
Source§impl<Q> Serialize for MultiCriticConfig<Q>where
Q: Serialize,
impl<Q> Serialize for MultiCriticConfig<Q>where
Q: Serialize,
impl<Q> StructuralPartialEq for MultiCriticConfig<Q>
Auto Trait Implementations§
impl<Q> Freeze for MultiCriticConfig<Q>where
Q: Freeze,
impl<Q> RefUnwindSafe for MultiCriticConfig<Q>where
Q: RefUnwindSafe,
impl<Q> Send for MultiCriticConfig<Q>where
Q: Send,
impl<Q> Sync for MultiCriticConfig<Q>where
Q: Sync,
impl<Q> Unpin for MultiCriticConfig<Q>where
Q: Unpin,
impl<Q> UnwindSafe for MultiCriticConfig<Q>where
Q: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more