pub struct PerceptronConfig {
pub epochs: usize,
pub averaged: bool,
}Expand description
Configuration for perceptron training.
Fields§
§epochs: usizeNumber of passes (epochs) over the training set.
averaged: boolWhether to return the averaged weight vector (Collins averaging).
Trait Implementations§
Source§impl Clone for PerceptronConfig
impl Clone for PerceptronConfig
Source§fn clone(&self) -> PerceptronConfig
fn clone(&self) -> PerceptronConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PerceptronConfig
impl Debug for PerceptronConfig
Auto Trait Implementations§
impl Freeze for PerceptronConfig
impl RefUnwindSafe for PerceptronConfig
impl Send for PerceptronConfig
impl Sync for PerceptronConfig
impl Unpin for PerceptronConfig
impl UnsafeUnpin for PerceptronConfig
impl UnwindSafe for PerceptronConfig
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