Added additional doctest and fixed indices (#141)

This commit is contained in:
Chris McComb
2022-08-12 17:38:13 -04:00
committed by GitHub
parent b482acdc8d
commit d905ebea15
6 changed files with 22 additions and 9 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ impl<T: RealNumber, M: Matrix<T>, K: Kernel<T, M::RowVector>> SVR<T, M, K> {
Ok(y_hat)
}
pub(in crate) fn predict_for_row(&self, x: M::RowVector) -> T {
pub(crate) fn predict_for_row(&self, x: M::RowVector) -> T {
let mut f = self.b;
for i in 0..self.instances.len() {