Shoker2 commited on
Commit ·
c868436
1
Parent(s): 945132d
docs: readme
Browse files- .gitignore +1 -1
- README.md +13 -1
.gitignore
CHANGED
|
@@ -16,6 +16,6 @@ uv.lock
|
|
| 16 |
.vscode
|
| 17 |
test.drawio
|
| 18 |
test.py
|
| 19 |
-
models
|
| 20 |
Fashion-MNIST/
|
| 21 |
MNIST/
|
|
|
|
| 16 |
.vscode
|
| 17 |
test.drawio
|
| 18 |
test.py
|
| 19 |
+
models/*
|
| 20 |
Fashion-MNIST/
|
| 21 |
MNIST/
|
README.md
CHANGED
|
@@ -8,4 +8,16 @@ language:
|
|
| 8 |
metrics:
|
| 9 |
- accuracy
|
| 10 |
- confusion_matrix
|
| 11 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
metrics:
|
| 9 |
- accuracy
|
| 10 |
- confusion_matrix
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# How to run
|
| 14 |
+
|
| 15 |
+
Download mnist dataset: `python dataset_downloader.py -f "MNIST" -d "ylecun/mnist"`
|
| 16 |
+
|
| 17 |
+
Download fashion mnist dataset: `python dataset_downloader.py -f "Fashion-MNIST" -d "zalando-datasets/fashion_mnist"`
|
| 18 |
+
|
| 19 |
+
Train: `python mnist.py --mode train --dataset "./Fashion-MNIST/train.csv" --model "./models/Fashion-MNIST.pth" --epochs 8 --batch-size 64 --lr 0.001`
|
| 20 |
+
|
| 21 |
+
Inference: `python mnist.py --mode inference --input "./Fashion-MNIST/test.csv" --model "./models/Fashion-MNIST.pth" --output "./Fashion-MNIST/predictions.csv" --batch-size 64`
|
| 22 |
+
|
| 23 |
+
Evaluate: `python evaluate.py --ground-truth "./Fashion-MNIST/test.csv" --predictions "./Fashion-MNIST/predictions.csv"`
|