[−][src]Struct xaynet::mask::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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<Model> for Vec<Ratio<BigInt>>
[src]
impl From<Vec<Ratio<BigInt>>> for Model
[src]
impl FromIterator<Ratio<BigInt>> for Model
[src]
fn from_iter<I: IntoIterator<Item = Ratio<BigInt>>>(iter: I) -> Self
[src]
impl FromPrimitives<f32> for Model
[src]
fn from_primitives<I: Iterator<Item = f32>>(
iter: I
) -> Result<Self, PrimitiveCastError<f32>>
[src]
iter: I
) -> Result<Self, PrimitiveCastError<f32>>
fn from_primitives_bounded<I: Iterator<Item = f32>>(iter: I) -> Self
[src]
impl FromPrimitives<f64> for Model
[src]
fn from_primitives<I: Iterator<Item = f64>>(
iter: I
) -> Result<Self, PrimitiveCastError<f64>>
[src]
iter: I
) -> Result<Self, PrimitiveCastError<f64>>
fn from_primitives_bounded<I: Iterator<Item = f64>>(iter: I) -> Self
[src]
impl FromPrimitives<i32> for Model
[src]
fn from_primitives<I: Iterator<Item = i32>>(
iter: I
) -> Result<Self, PrimitiveCastError<i32>>
[src]
iter: I
) -> Result<Self, PrimitiveCastError<i32>>
fn from_primitives_bounded<I: Iterator<Item = i32>>(iter: I) -> Self
[src]
impl FromPrimitives<i64> for Model
[src]
fn from_primitives<I: Iterator<Item = i64>>(
iter: I
) -> Result<Self, PrimitiveCastError<i64>>
[src]
iter: I
) -> Result<Self, PrimitiveCastError<i64>>
fn from_primitives_bounded<I: Iterator<Item = i64>>(iter: I) -> Self
[src]
impl Hash for Model
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<__IdxT> Index<__IdxT> for Model where
Vec<Ratio<BigInt>>: Index<__IdxT>,
[src]
Vec<Ratio<BigInt>>: Index<__IdxT>,
type Output = <Vec<Ratio<BigInt>> as Index<__IdxT>>::Output
The returned type after indexing.
fn index(&self, idx: __IdxT) -> &Self::Output
[src]
impl<__IdxT> IndexMut<__IdxT> for Model where
Vec<Ratio<BigInt>>: IndexMut<__IdxT>,
[src]
Vec<Ratio<BigInt>>: IndexMut<__IdxT>,
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl IntoPrimitives<f32> for Model
[src]
fn into_primitives(
self
) -> Box<dyn Iterator<Item = Result<f32, ModelCastError>>>
[src]
self
) -> Box<dyn Iterator<Item = Result<f32, ModelCastError>>>
fn to_primitives(&self) -> Box<dyn Iterator<Item = Result<f32, ModelCastError>>>
[src]
fn into_primitives_unchecked(self) -> Box<dyn Iterator<Item = P>>
[src]
impl IntoPrimitives<f64> for Model
[src]
fn into_primitives(
self
) -> Box<dyn Iterator<Item = Result<f64, ModelCastError>>>
[src]
self
) -> Box<dyn Iterator<Item = Result<f64, ModelCastError>>>
fn to_primitives(&self) -> Box<dyn Iterator<Item = Result<f64, ModelCastError>>>
[src]
fn into_primitives_unchecked(self) -> Box<dyn Iterator<Item = P>>
[src]
impl IntoPrimitives<i32> for Model
[src]
fn into_primitives(
self
) -> Box<dyn Iterator<Item = Result<i32, ModelCastError>>>
[src]
self
) -> Box<dyn Iterator<Item = Result<i32, ModelCastError>>>
fn to_primitives(&self) -> Box<dyn Iterator<Item = Result<i32, ModelCastError>>>
[src]
fn into_primitives_unchecked(self) -> Box<dyn Iterator<Item = P>>
[src]
impl IntoPrimitives<i64> for Model
[src]
fn into_primitives(
self
) -> Box<dyn Iterator<Item = Result<i64, ModelCastError>>>
[src]
self
) -> Box<dyn Iterator<Item = Result<i64, ModelCastError>>>
fn to_primitives(&self) -> Box<dyn Iterator<Item = Result<i64, ModelCastError>>>
[src]
fn into_primitives_unchecked(self) -> Box<dyn Iterator<Item = P>>
[src]
impl PartialEq<Model> for Model
[src]
impl Serialize for Model
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,