sweepai / evals

Apache License 2.0
0 stars 0 forks source link

Refactor training loop from script to class #130

Closed sweep-nightly[bot] closed 10 months ago

sweep-nightly[bot] commented 11 months ago

Description

This PR refactors the training loop from a script to a class in order to improve code organization and reusability. The existing code in src/main.py is encapsulated into a new class named MNISTTrainer, which includes methods for loading and preprocessing the data, defining the model, training the model, and saving the trained model.

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 11 months ago

Rollback Files For Sweep

sweep-nightly[bot] commented 11 months ago

Apply Sweep Rules to your PR?