Skip to main content

Regularization

Trait Regularization 

Source
pub trait Regularization:
    RegularizationClone
    + Send
    + Sync
    + Serialize
    + Deserialize {
    // Required methods
    fn apply(&self, params: &mut [&mut DMat], grads: &mut [&mut DMat]);
    fn as_any(&self) -> &dyn Any;
}

Required Methods§

Source

fn apply(&self, params: &mut [&mut DMat], grads: &mut [&mut DMat])

Source

fn as_any(&self) -> &dyn Any

Trait Implementations§

Source§

impl Clone for Box<dyn Regularization>

Source§

fn clone(&self) -> Box<dyn Regularization>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Regularization for Box<dyn Regularization>

Source§

fn apply(&self, params: &mut [&mut DMat], grads: &mut [&mut DMat])

Source§

fn as_any(&self) -> &dyn Any

Source§

impl RegularizationClone for Box<dyn Regularization>

Source§

impl<'typetag> Serialize for dyn Regularization + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn Regularization + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn Regularization + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn Regularization + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Regularization for Box<dyn Regularization>

Source§

fn apply(&self, params: &mut [&mut DMat], grads: &mut [&mut DMat])

Source§

fn as_any(&self) -> &dyn Any

Implementors§