Skip to main content

linear

Function linear 

Source
pub fn linear(lr: f64) -> StreamingLinearModel
Expand description

Create a streaming linear model with the given learning rate.

use irithyll::{linear, StreamingLearner};

let mut model = linear(0.01);
model.train(&[1.0, 2.0], 3.0);