pub struct LinearModel {
pub weights: Array2<f64>,
pub bias: Array1<f64>,
pub learning_rate: f64,
pub task: Task,
pub rng: StdRng,
}
Fields§
§weights: Array2<f64>
§bias: Array1<f64>
§learning_rate: f64
§task: Task
§rng: StdRng
Implementations§
Auto Trait Implementations§
impl Freeze for LinearModel
impl RefUnwindSafe for LinearModel
impl Send for LinearModel
impl Sync for LinearModel
impl Unpin for LinearModel
impl UnwindSafe for LinearModel
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