1 2 3 4 5 6
use crate::linalg::array::Array; pub trait Model { fn optimize(&mut self, xs: Array, ys: Array); fn predict(&mut self, observed_xs: Array) -> Array; }