use vikos::{cost, learn_history, teacher};
fn main() {
let history = [1.0, 3.0, 4.0, 7.0, 8.0, 11.0, 29.0];
let mut model = 0.0;
let cost = cost::LeastSquares {};
let teacher = teacher::GradientDescentAl { l0: 0.3, t: 4.0 };
learn_history(
&teacher,
&cost,
&mut model,
history.iter().cycle().take(100).map(|&y| ((), y)),
);
println!("{}", model);
}