[lab4] Minor fixes

This commit is contained in:
Andrew Golovashevich 2026-02-09 11:47:53 +03:00
parent 8680a370a5
commit 6f2ab2bb6b
2 changed files with 10 additions and 5 deletions

View File

@ -55,13 +55,13 @@ pub fn gen_images() -> ([&'static str; 8], [[[bool; 7]; 7]; 8]) {
// >=
image(
[
" * ",
" * ",
" * ",
" * ",
" * ",
" * * ",
" * ",
" * ",
" * * ",
" * ",
" * ",
]
),
// =

View File

@ -89,7 +89,8 @@ impl eframe::App for MyApp {
epochs_left: self.epochs_count,
epochs_per_update: min(10, self.epochs_count / 60),
n: 0.0,
}
};
self.model.set_random_weights(&mut rand::rng());
}
match &mut self.training {
@ -180,5 +181,9 @@ impl eframe::App for MyApp {
});
});
});
if matches!(self.training, TrainingState::Training {..}) {
ui.request_repaint()
}
}
}