Closed sweep-nightly[bot] closed 11 months ago
src/cnn.py
. ✓
Sandbox logs for
trunk fmt src/cnn.py || exit 0
1/2 ✓Checked 1 file ✔ No issues Run trunk upgrade to upgrade 1 linter
trunk check --fix --filter=-ruff --print-failures src/cnn.py
2/2 ✓Checked 1 file ✔ No issues
src/main.py
. ✓
Sandbox logs for https://github.com/sweepai/evals/commit/ac124aa1a1b593648bb31cd144f27267be735a4d
trunk fmt src/main.py || exit 0
1/2 ✓✔ Formatted src/main.py Re-checking autofixed files... ✔ Formatted src/main.py Re-checking autofixed files... Checked 1 file ✔ No issues Run trunk upgrade to upgrade 1 linter
trunk check --fix --filter=-ruff --print-failures src/main.py
2/2 ✓Checked 1 file ✔ No issues
src/api.py
. ✓
Sandbox logs for https://github.com/sweepai/evals/commit/b4aaeeebfbbe7fdc5bd45c0b8693c03cdf501f9a
trunk fmt src/api.py || exit 0
1/2 ✓✔ Formatted src/api.py Re-checking autofixed files... ✔ Formatted src/api.py Re-checking autofixed files... Checked 1 file ✔ No issues Run trunk upgrade to upgrade 1 linter
trunk check --fix --filter=-ruff --print-failures src/api.py
2/2 ✓Checked 1 file ✔ No issues
Description
This pull request adds a Convolutional Neural Network (CNN) model for MNIST classification. It also updates the import statements and file references accordingly.
Summary
src/api.py
andsrc/main.py
.src/cnn.py
which contains the CNN model for MNIST classification.src/api.py
andsrc/main.py
to use the new CNN model.src/api.py
.predict
endpoint insrc/api.py
to handle image classification using the CNN model.src/main.py
to use the new CNN model.Net
class fromsrc/main.py
as it is no longer used.mnist_model.pth
.Fixes #9.
🎉 Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py
!💡 To get Sweep to edit this pull request, you can: