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
|
||||
|
||||
- [ ] 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
|
||||
.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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user