sweepai / evals

Apache License 2.0
0 stars 0 forks source link

Refactor training loop from script to class #101

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 training loop, which was previously located in src/main.py, has been encapsulated within a new class named MNISTTrainer. The class is responsible for loading and preprocessing the MNIST dataset, defining the PyTorch model, and training the model. It also provides a method to save the trained model to a file.

Summary of Changes

Please review and merge this PR. Thank you!

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?