[][src]Struct xaynet::mask::Model

pub struct Model(_);

A numerical representation of a machine learning model.

Implementations

impl Model[src]

pub fn len(&self) -> usize[src]

Gets the number of weights/parameters of this model.

pub fn iter(&self) -> Iter<Ratio<BigInt>>[src]

Creates an iterator that yields references to the weights/parameters of this model.

pub fn iter_mut(&mut self) -> IterMut<Ratio<BigInt>>[src]

Creates an iterator that yields mutable references to the weights/parameters of this model.

Trait Implementations

impl Clone for Model[src]

impl Debug for Model[src]

impl<'de> Deserialize<'de> for Model[src]

impl From<Model> for Vec<Ratio<BigInt>>[src]

impl From<Vec<Ratio<BigInt>>> for Model[src]

impl FromIterator<Ratio<BigInt>> for Model[src]

impl FromPrimitives<f32> for Model[src]

impl FromPrimitives<f64> for Model[src]

impl FromPrimitives<i32> for Model[src]

impl FromPrimitives<i64> for Model[src]

impl Hash for Model[src]

impl<__IdxT> Index<__IdxT> for Model where
    Vec<Ratio<BigInt>>: Index<__IdxT>, 
[src]

type Output = <Vec<Ratio<BigInt>> as Index<__IdxT>>::Output

The returned type after indexing.

impl<__IdxT> IndexMut<__IdxT> for Model where
    Vec<Ratio<BigInt>>: IndexMut<__IdxT>, 
[src]

impl IntoIterator for Model[src]

type Item = Ratio<BigInt>

The type of the elements being iterated over.

type IntoIter = IntoIter<Self::Item>

Which kind of iterator are we turning this into?

impl IntoPrimitives<f32> for Model[src]

impl IntoPrimitives<f64> for Model[src]

impl IntoPrimitives<i32> for Model[src]

impl IntoPrimitives<i64> for Model[src]

impl PartialEq<Model> for Model[src]

impl Serialize for Model[src]

impl StructuralPartialEq for Model[src]

Auto Trait Implementations

impl RefUnwindSafe for Model

impl Send for Model

impl Sync for Model

impl Unpin for Model

impl UnwindSafe for Model

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]