[lab4] Minor fixes
This commit is contained in:
parent
8680a370a5
commit
6f2ab2bb6b
@ -55,13 +55,13 @@ pub fn gen_images() -> ([&'static str; 8], [[[bool; 7]; 7]; 8]) {
|
||||
// >=
|
||||
image(
|
||||
[
|
||||
" * ",
|
||||
" * ",
|
||||
" * ",
|
||||
" * ",
|
||||
" * ",
|
||||
" * * ",
|
||||
" * ",
|
||||
" * ",
|
||||
" * * ",
|
||||
" * ",
|
||||
" * ",
|
||||
]
|
||||
),
|
||||
// =
|
||||
|
||||
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user