More refactoring

This commit is contained in:
2022-12-16 15:57:56 +01:00
parent 51467f7b69
commit 912a282cd8
2 changed files with 30 additions and 11 deletions

View File

@@ -227,7 +227,7 @@ impl History {
pub fn log_evidence(&mut self, forward: bool, targets: &[Index]) -> f64 {
self.batches
.iter()
.map(|batch| batch.log_evidence(self.online, targets, forward, &mut self.agents))
.map(|batch| batch.log_evidence(self.online, targets, forward, &self.agents))
.sum()
}