-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: get_minibatch() of SupervisedNE
This commit fixes/improves SupervisedNE in two ways: 1) The `get_minibatch()` method of `SupervisedNE` no longer uses recursion to handle the end of the data loader's minibatches. The new implementation catches only `StopIteration` and non-recursively restarts the iterator of the data loader. Any other type of error is now deliberately unhandled to avoid unwanted infinite recursion and to allow the user to see the details of the error. 2) The example notebook `Training_MNIST30K.ipynb` demonstrating the usage of `SupervisedNE` is updated so that its hyperparameter configuration follows what is reported in the technical report of EvoTorch. This way, results reported in the report can be reproduced. Co-authored-by: Timothy Atkinson <timothy@nnaisense.com> Co-authored-by: Nihat Engin Toklu <engin@nnaisense.com>
- Loading branch information
1 parent
e8060ff
commit 8078df0
Showing
2 changed files
with
60 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters