sweepai / evals

Apache License 2.0
0 stars 0 forks source link

Refactor training loop from script to class #72

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 for better organization and reusability. The existing code in src/main.py is encapsulated into a new class named MNISTTrainer. The class is responsible for loading and preprocessing the MNIST data, defining the PyTorch model, training the model, and saving/loading the model for future use.

Summary of Changes

Please review and merge this PR to complete the requested refactoring of the training loop.

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?