pub struct ModelFeatures { /* private fields */ }Implementations§
Source§impl ModelFeatures
impl ModelFeatures
pub fn new(input: usize, hidden: usize, layers: usize, output: usize) -> Self
pub const fn input(&self) -> usize
pub fn input_mut(&mut self) -> &mut usize
pub fn set_input(&mut self, input: usize)
pub fn with_input(self, input: usize) -> Self
pub const fn layers(&self) -> usize
pub fn layers_mut(&mut self) -> &mut usize
pub fn set_layers(&mut self, layers: usize)
pub fn with_layers(self, layers: usize) -> Self
pub const fn output(&self) -> usize
pub fn output_mut(&mut self) -> &mut usize
pub fn set_output(&mut self, output: usize)
pub fn with_output(self, output: usize) -> Self
the dimension of the hidden layers; (hidden, hidden)
Sourcepub fn size_input(&self) -> usize
pub fn size_input(&self) -> usize
the total number of input parameters in the model
the total number of hidden parameters in the model
Sourcepub fn size_output(&self) -> usize
pub fn size_output(&self) -> usize
the total number of output parameters in the model
Trait Implementations§
Source§impl Clone for ModelFeatures
impl Clone for ModelFeatures
Source§fn clone(&self) -> ModelFeatures
fn clone(&self) -> ModelFeatures
Returns a copy 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 Debug for ModelFeatures
impl Debug for ModelFeatures
Source§impl Default for ModelFeatures
impl Default for ModelFeatures
Source§impl Display for ModelFeatures
impl Display for ModelFeatures
Source§impl Hash for ModelFeatures
impl Hash for ModelFeatures
Source§impl Ord for ModelFeatures
impl Ord for ModelFeatures
Source§fn cmp(&self, other: &ModelFeatures) -> Ordering
fn cmp(&self, other: &ModelFeatures) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ModelFeatures
impl PartialEq for ModelFeatures
Source§impl PartialOrd for ModelFeatures
impl PartialOrd for ModelFeatures
impl Copy for ModelFeatures
impl Eq for ModelFeatures
impl StructuralPartialEq for ModelFeatures
Auto Trait Implementations§
impl Freeze for ModelFeatures
impl RefUnwindSafe for ModelFeatures
impl Send for ModelFeatures
impl Sync for ModelFeatures
impl Unpin for ModelFeatures
impl UnwindSafe for ModelFeatures
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