RawParams

Trait RawParams 

Source
pub trait RawParams {
    type Elem: ?Sized;
}
Expand description

The RawParams trait is used to denote objects capable of being used as a paramater within a neural network or machine learning context. More over, it provides us with an ability to associate some generic element type with the parameter and thus allows us to consider so-called parameter spaces. If we allow a parameter space to simply be a collection of points then we can refine the definition downstream to consider specific interpolations, distributions, or manifolds. In other words, we are trying to construct a tangible configuration space for our models so that we can reason about optimization and training in a more formal manner.

Note: This trait is sealed and cannot be implemented outside of this crate.

Required Associated Types§

Implementations on Foreign Types§

Source§

impl RawParams for bool

Source§

impl RawParams for char

Source§

impl RawParams for f32

Source§

impl RawParams for f64

Source§

impl RawParams for i8

Source§

impl RawParams for i16

Source§

impl RawParams for i32

Source§

impl RawParams for i64

Source§

impl RawParams for i128

Source§

impl RawParams for isize

Source§

impl RawParams for str

Source§

impl RawParams for u8

Source§

impl RawParams for u16

Source§

impl RawParams for u32

Source§

impl RawParams for u64

Source§

impl RawParams for u128

Source§

impl RawParams for usize

Source§

impl RawParams for String

Available on crate feature alloc only.
Source§

impl<A, T> RawParams for &T
where T: RawParams<Elem = A>,

Source§

type Elem = A

Source§

impl<A, T> RawParams for &mut T
where T: RawParams<Elem = A>,

Source§

type Elem = A

Source§

impl<S, D, A> RawParams for ArrayBase<S, D, A>
where D: Dimension, S: RawData<Elem = A>,

Source§

type Elem = A

Source§

impl<T> RawParams for &[T]

Source§

type Elem = T

Source§

impl<T> RawParams for &mut [T]

Source§

type Elem = T

Source§

impl<T> RawParams for [T]

Source§

type Elem = T

Source§

impl<T> RawParams for Vec<T>
where T: RawParams,

Source§

type Elem = <T as RawParams>::Elem

Source§

impl<const N: usize, T> RawParams for [T; N]

Source§

type Elem = T

Implementors§

Source§

impl<S, D, A> RawParams for ParamsBase<S, D, A>
where D: Dimension, S: RawData<Elem = A>,

Source§

type Elem = A