[][src]Struct simple_ml::BLR

pub struct BLR {
    pub file_path: String,
    pub test_size: f64,
    pub target_column: usize,
    pub learning_rate: f64,
    pub iter_count: u32,
    pub binary_threshold: f64,
}

Fields

file_path: Stringtest_size: f64target_column: usizelearning_rate: f64iter_count: u32binary_threshold: f64

Implementations

impl BLR[src]

pub fn fit(&self)[src]

pub fn predict(
    test_features: &Vec<Vec<f64>>,
    weights: &Vec<f64>,
    threshold: f64
) -> Vec<f64>
[src]

pub fn change_in_loss(coeff: &Vec<f64>, lr: f64, gd: &Vec<f64>) -> Vec<f64>[src]

pub fn gradient_descent(
    train: &Vec<Vec<f64>>,
    sigmoid: &Vec<f64>,
    y_train: &Vec<f64>
) -> Vec<f64>
[src]

pub fn log_loss(sigmoid: &Vec<f64>, y_train: &Vec<f64>) -> f64[src]

pub fn sigmoid(train: &Vec<Vec<f64>>, coeff: &Vec<f64>) -> Vec<f64>[src]

Auto Trait Implementations

impl RefUnwindSafe for BLR

impl Send for BLR

impl Sync for BLR

impl Unpin for BLR

impl UnwindSafe for BLR

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,