Skip to content

Commit

Permalink
Log issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BradenEverson committed Feb 1, 2024
1 parent 47f32f3 commit 4cfdf96
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,11 @@ impl Network{
}

self.loss = self.loss_train[self.loss_train.len() - 1];
println!("Trained to a loss of {:.2}%", self.loss * 100.0);
for i in 0..self.layers.len() - 1 {
println!("Error on layer {}: +/- {:.2}", i + 1, self.layers[i].get_loss());
if self.log {
println!("Trained to a loss of {:.2}%", self.loss * 100.0);
for i in 0..self.layers.len() - 1 {
println!("Error on layer {}: +/- {:.2}", i + 1, self.layers[i].get_loss());
}
}
}

Expand Down

0 comments on commit 4cfdf96

Please sign in to comment.