Struct fbleau::estimates::frequentist::FrequentistEstimator[][src]

pub struct FrequentistEstimator { /* fields omitted */ }

Keeps track of the frequentist estimate, allowing to reduce the size of training data.

Implementations

impl FrequentistEstimator[src]

pub fn new(
    n_labels: usize,
    test_x: &ArrayView2<'_, f64>,
    test_y: &ArrayView1<'_, Label>
) -> FrequentistEstimator
[src]

pub fn from_data(
    n_labels: usize,
    train_x: &ArrayView1<'_, usize>,
    train_y: &ArrayView1<'_, Label>,
    test_x: &ArrayView1<'_, usize>,
    test_y: &ArrayView1<'_, Label>
) -> FrequentistEstimator
[src]

pub fn remove_one(&mut self) -> Result<(), ()>[src]

Trait Implementations

impl BayesEstimator for FrequentistEstimator[src]

fn add_example(&mut self, x: &ArrayView1<'_, f64>, y: Label) -> Result<(), ()>[src]

Adds a new training example.

fn get_error_count(&self) -> usize[src]

Returns the current number of errors.

fn get_error(&self) -> f64[src]

Returns the current error rate.

fn get_individual_errors(&self) -> Vec<bool>[src]

Returns the current errors for each test point.

Auto Trait Implementations

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> From<T> for T[src]

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

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.