Removed some old code
This commit is contained in:
parent
9c5b74fb26
commit
3d024259ee
1 changed files with 0 additions and 2 deletions
|
@ -30,8 +30,6 @@ impl Layer for ActivationLayer {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn backward_pass(&mut self, output_error: ArrayView1<f64>, _learning_rate: f64) -> Array1<f64> {
|
fn backward_pass(&mut self, output_error: ArrayView1<f64>, _learning_rate: f64) -> Array1<f64> {
|
||||||
// (self.activation_prime)(&self.input).into_shape((1 as usize, output_error.len() as usize)).unwrap().dot(&output_error)
|
|
||||||
// (self.activation_prime)(&self.input) * &output_error
|
|
||||||
let mut temp = (self.activation_prime)(&self.input);
|
let mut temp = (self.activation_prime)(&self.input);
|
||||||
temp.zip_mut_with(&output_error, |x, y| *x *= y);
|
temp.zip_mut_with(&output_error, |x, y| *x *= y);
|
||||||
temp
|
temp
|
||||||
|
|
Loading…
Reference in a new issue