sweepai / evals

Apache License 2.0
0 stars 0 forks source link

Refactor training loop from script to class #70

Closed sweep-nightly[bot] closed 1 year ago

sweep-nightly[bot] commented 1 year ago

Description

This PR refactors the training loop from a script to a class in order to improve modularity, readability, and testability. The training loop, which was previously located in the main.py file, has been encapsulated within a new class named MNISTTrainer. This class has methods for loading the MNIST data, preprocessing it, and training the model. The api.py file has also been updated to import the MNISTTrainer class instead of the Net class.

Summary of Changes

Fixes #6.


🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

sweep-nightly[bot] commented 1 year ago

Rollback Files For Sweep

sweep-nightly[bot] commented 1 year ago

Apply Sweep Rules to your PR?