First version of the optimizer

This commit is contained in:
Volodymyr Orlov
2019-10-29 08:59:06 -07:00
parent f4aec2b35e
commit 4488cc110e
10 changed files with 521 additions and 5 deletions
+1 -2
View File
@@ -25,8 +25,7 @@ impl<M: Matrix> LinearRegression<M> {
if x_nrows != y_nrows {
panic!("Number of rows of X doesn't match number of rows of Y");
}
// let b = y.v_stack(&M::ones(1, 1));
let b = y.clone();
let mut a = x.h_stack(&M::ones(x_nrows, 1));