IT WORKS! But small difference between this version and the python. 46.2% vs 47.1%, but that's not much.

This commit is contained in:
2020-02-20 16:36:02 +01:00
parent 9ac7e44776
commit 8a1e6620ad
5 changed files with 111 additions and 41 deletions

View File

@@ -10,6 +10,8 @@ pub trait Fitter {
fn fit(&mut self);
fn predict(&self, ts: &[f64]) -> (Vec<f64>, Vec<f64>);
fn vs(&self, idx: usize) -> f64;
fn vs_mut(&mut self, idx: usize) -> &mut f64;