Removed some old code

This commit is contained in:
lluni 2023-02-04 17:26:49 +01:00
parent 9c5b74fb26
commit 3d024259ee
Signed by: lluni
GPG key ID: ACEEB468BC325D35

View file

@ -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