abdurafay19 commited on
Commit
478d90b
·
verified ·
1 Parent(s): e21b29c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -6
README.md CHANGED
@@ -138,7 +138,7 @@ print(f"Predicted digit: {prediction}")
138
  | Optimizer | Adam |
139
  | Learning Rate | 1e-3 |
140
  | Batch Size | 64 |
141
- | Epochs | 10 |
142
  | Loss Function | CrossEntropyLoss |
143
  | Dropout | 0.5 |
144
  | Training regime | fp32 |
@@ -146,7 +146,7 @@ print(f"Predicted digit: {prediction}")
146
  #### Speeds, Sizes, Times
147
 
148
  - **Training time:** ~10 minutes on a single GPU (NVIDIA T4)
149
- - **Model size:** ~1.9 MB (`.pt` file)
150
  - **Inference speed:** <50ms per image (CPU)
151
 
152
  ---
@@ -172,18 +172,42 @@ Evaluation was performed across all 10 digit classes equally. No disaggregation
172
 
173
  | Metric | Value |
174
  |---------------|---------|
175
- | Test Accuracy | 99.1% |
176
 
177
  #### Summary
178
 
179
- The model achieves **99.1% accuracy** on the MNIST test set, consistent with state-of-the-art results for CNN-based approaches on this benchmark.
180
 
181
  ---
182
 
183
  ## Model Examination
184
 
185
  The model's convolutional filters learn edge detectors and stroke patterns in the first layers, which compose into digit-specific features in deeper layers. Standard CNN interpretability techniques (e.g., Grad-CAM) can be applied to visualize which regions most influence predictions.
 
186
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
  ---
188
 
189
  ## Environmental Impact
@@ -193,7 +217,7 @@ Carbon emissions estimated using the [ML Impact Calculator](https://mlco2.github
193
  | Factor | Value |
194
  |-----------------|------------------------|
195
  | Hardware Type | NVIDIA T4 GPU |
196
- | Hours Used | ~0.17 hrs (10 min) |
197
  | Cloud Provider | Google Colab / Local |
198
  | Compute Region | Singapore |
199
  | Carbon Emitted | ~0.01 kg CO₂eq (est.) |
@@ -220,7 +244,7 @@ Carbon emissions estimated using the [ML Impact Calculator](https://mlco2.github
220
  ### Compute Infrastructure
221
 
222
  - **Hardware:** NVIDIA T4 / any CUDA-capable GPU (or CPU for inference)
223
- - **Software:** Python 3.9+, PyTorch 2.0, torchvision, Gradio
224
 
225
  ---
226
 
 
138
  | Optimizer | Adam |
139
  | Learning Rate | 1e-3 |
140
  | Batch Size | 64 |
141
+ | Epochs | 28 |
142
  | Loss Function | CrossEntropyLoss |
143
  | Dropout | 0.5 |
144
  | Training regime | fp32 |
 
146
  #### Speeds, Sizes, Times
147
 
148
  - **Training time:** ~10 minutes on a single GPU (NVIDIA T4)
149
+ - **Model size:** ~2.4 MB (`.pt` file)
150
  - **Inference speed:** <50ms per image (CPU)
151
 
152
  ---
 
172
 
173
  | Metric | Value |
174
  |---------------|---------|
175
+ | Test Accuracy | 99.16% |
176
 
177
  #### Summary
178
 
179
+ The model achieves **99.16% accuracy** on the MNIST test set, consistent with state-of-the-art results for CNN-based approaches on this benchmark.
180
 
181
  ---
182
 
183
  ## Model Examination
184
 
185
  The model's convolutional filters learn edge detectors and stroke patterns in the first layers, which compose into digit-specific features in deeper layers. Standard CNN interpretability techniques (e.g., Grad-CAM) can be applied to visualize which regions most influence predictions.
186
+ ### Model Architecture
187
 
188
+ #### Convolutional Blocks
189
+
190
+ | Layer | Output Shape | Details |
191
+ |-------------|---------------|------------------------------|
192
+ | Conv2d | (64, 28, 28) | 64 filters, 3×3, padding=1 |
193
+ | BatchNorm2d | (64, 28, 28) | — |
194
+ | ReLU | (64, 28, 28) | inplace=True |
195
+ | MaxPool2d | (64, 14, 14) | 2×2 |
196
+ | Conv2d | (128, 14, 14) | 128 filters, 3×3, padding=1 |
197
+ | BatchNorm2d | (128, 14, 14) | — |
198
+ | ReLU | (128, 14, 14) | inplace=True |
199
+ | MaxPool2d | (128, 7, 7) | 2×2 |
200
+
201
+ #### Fully Connected Layers
202
+
203
+ | Layer | Output | Details |
204
+ |----------|--------|-------------------------------------|
205
+ | Flatten | 6272 | — |
206
+ | Linear | 512 | + BatchNorm1d + ReLU + Dropout(0.4) |
207
+ | Linear | 128 | + BatchNorm1d + ReLU + Dropout(0.2) |
208
+ | Linear | 10 | Raw logits |
209
+
210
+ **Total Parameters: ~3.5M** — Kaiming Normal initialization throughout.
211
  ---
212
 
213
  ## Environmental Impact
 
217
  | Factor | Value |
218
  |-----------------|------------------------|
219
  | Hardware Type | NVIDIA T4 GPU |
220
+ | Hours Used | ~0.2 hrs (10 min) |
221
  | Cloud Provider | Google Colab / Local |
222
  | Compute Region | Singapore |
223
  | Carbon Emitted | ~0.01 kg CO₂eq (est.) |
 
244
  ### Compute Infrastructure
245
 
246
  - **Hardware:** NVIDIA T4 / any CUDA-capable GPU (or CPU for inference)
247
+ - **Software:** Python 3.10+, PyTorch 2.0, torchvision
248
 
249
  ---
250