pub struct Perceptron {
pub weights: Vec<f64>,
pub bias: f64,
pub mistakes: usize,
}Expand description
Online Perceptron classifier.
Fields§
§weights: Vec<f64>Weight vector w ∈ ℝ^d.
bias: f64Bias term b.
mistakes: usizeNumber of mistakes made so far.
Implementations§
Auto Trait Implementations§
impl Freeze for Perceptron
impl RefUnwindSafe for Perceptron
impl Send for Perceptron
impl Sync for Perceptron
impl Unpin for Perceptron
impl UnsafeUnpin for Perceptron
impl UnwindSafe for Perceptron
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