[lab4] Minor fixes
This commit is contained in:
parent
8680a370a5
commit
6f2ab2bb6b
@ -89,7 +89,8 @@ impl eframe::App for MyApp {
|
|||||||
epochs_left: self.epochs_count,
|
epochs_left: self.epochs_count,
|
||||||
epochs_per_update: min(10, self.epochs_count / 60),
|
epochs_per_update: min(10, self.epochs_count / 60),
|
||||||
n: 0.0,
|
n: 0.0,
|
||||||
}
|
};
|
||||||
|
self.model.set_random_weights(&mut rand::rng());
|
||||||
}
|
}
|
||||||
|
|
||||||
match &mut self.training {
|
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