Fix another bug in Fitter::predict
This commit is contained in:
@@ -4,4 +4,4 @@ Rust port of [kickscore](https://github.com/lucasmaystre/kickscore).
|
|||||||
|
|
||||||
## Todo
|
## Todo
|
||||||
|
|
||||||
- [ ] Add all kernels
|
- [ ] Fitter::predict should return a Result in case of error
|
||||||
|
|||||||
@@ -279,8 +279,8 @@ impl<K: Kernel> Fitter for Recursive<K> {
|
|||||||
self.h
|
self.h
|
||||||
.dot(
|
.dot(
|
||||||
&(&p + &g
|
&(&p + &g
|
||||||
.dot(&(&self.p_s[(j + 1) as usize] - &self.p_p[(j + 1) as usize])))
|
.dot(&(&self.p_s[(j + 1) as usize] - &self.p_p[(j + 1) as usize]))
|
||||||
.dot(&g.t()),
|
.dot(&g.t())),
|
||||||
)
|
)
|
||||||
.dot(&self.h),
|
.dot(&self.h),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user