Improved backward_pass of ActivationLayer
This commit is contained in:
parent
3d024259ee
commit
16b6072d80
1 changed files with 1 additions and 3 deletions
|
@ -30,8 +30,6 @@ impl Layer for ActivationLayer {
|
|||
}
|
||||
|
||||
fn backward_pass(&mut self, output_error: ArrayView1<f64>, _learning_rate: f64) -> Array1<f64> {
|
||||
let mut temp = (self.activation_prime)(&self.input);
|
||||
temp.zip_mut_with(&output_error, |x, y| *x *= y);
|
||||
temp
|
||||
(self.activation_prime)(&self.input) * output_error
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue