[−][src]Struct simple_ml::BLR
Fields
file_path: String
test_size: f64
target_column: usize
learning_rate: f64
iter_count: u32
binary_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]
test_features: &Vec<Vec<f64>>,
weights: &Vec<f64>,
threshold: f64
) -> Vec<f64>
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]
train: &Vec<Vec<f64>>,
sigmoid: &Vec<f64>,
y_train: &Vec<f64>
) -> Vec<f64>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,