Fix another bug in Fitter::predict

This commit is contained in:
2022-04-28 12:14:58 +02:00
parent 347af1c908
commit ba06c40b2e
2 changed files with 3 additions and 3 deletions

View File

@@ -4,4 +4,4 @@ Rust port of [kickscore](https://github.com/lucasmaystre/kickscore).
## Todo
- [ ] Add all kernels
- [ ] Fitter::predict should return a Result in case of error

View File

@@ -279,8 +279,8 @@ impl<K: Kernel> Fitter for Recursive<K> {
self.h
.dot(
&(&p + &g
.dot(&(&self.p_s[(j + 1) as usize] - &self.p_p[(j + 1) as usize])))
.dot(&g.t()),
.dot(&(&self.p_s[(j + 1) as usize] - &self.p_p[(j + 1) as usize]))
.dot(&g.t())),
)
.dot(&self.h),
);