Skip to content

Commit df8cf5b

Browse files
Update README.md
1 parent c4d559e commit df8cf5b

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- [Step 3 : Training the model on the dataset](#step-3--training-the-model-on-the-dataset)
1515
- [Step 4 : Testing the Model](#step-4--testing-the-model)
1616
- [Step 5 : Saving the model](#step-5--saving-the-model)
17+
- [Step 6 : Logging of Parameters during Model Training and Testing](https://github.com/infinitecoder1729/mnist-dataset-classification/edit/main/README.md#step-6--logging-of-parameters-during-model-training-and-testing)
1718
- [To View results for any random picture in the dataset, the following code can be used :](#to-view-results-for-any-random-picture-in-the-dataset-the-following-code-can-be-used-)
1819
- [Examples](#examples-)
1920
- [Model Accuracy](#model-accuracy--the-accuracy-of-the-model-with-this-code-is-approximately-978-to-9802-with-a-training-time-of-aprox-35-to-4-minutes)
@@ -120,6 +121,22 @@ https://github.com/infinitecoder1729/mnist-dataset-classification/blob/a014ffaee
120121

121122
https://github.com/infinitecoder1729/mnist-dataset-classification/blob/a014ffaeead36b9a8d1458b51b6f70fc3d8873e3/MNIST%20Classification%20Model..py#L68
122123

124+
## Step 6 : Logging of Parameters during Model Training and Testing
125+
126+
To log and vizualize the model parameters, Tensorboard has being used. For now, It logs Loss vs Epoch data for which graph can be accessed using :
127+
128+
```bash
129+
tensorboard --logdir=runs
130+
```
131+
132+
The Logging happens at :
133+
https://github.com/infinitecoder1729/mnist-dataset-classification/blob/c4d559e6e3d4e49cbbaef084f0150a677c4e7408/MNIST%20Classification%20Model..py#L44
134+
135+
Following type of a graph is achieved as a result. It may vary if you change the algorithms and other parameters of the model :
136+
137+
![image](https://user-images.githubusercontent.com/77016507/236678310-bc09ca50-0e1f-4a05-84c6-8cb4b86d2142.png)
138+
139+
123140
## To View results for any random picture in the dataset, the following code can be used :
124141

125142
It also creates a graph displaying the probabilities returned by the model.
@@ -160,10 +177,10 @@ view_classify(image.view(1, 28, 28), ps)
160177

161178
## Further Improvements :
162179

163-
1. Working on making graphical representation of useful data such as Loss vs Epoch Number etc.
180+
1. Working on expanding Logging and Graphing to Other Parameters to give a more comprehensive assessment of the model's performance.
164181
2. Looking to test with different algorithms to strike a balance between training time and accuracy.
165182
3. A Jupyter Notebook containing the outputs of the code would also be uploaded
166183

167-
### Contributions, Suggestions, and inputs on graphical representation for better understanding are welcome.
184+
### Contributions, Suggestions, and inputs on logging and graphical representation for better understanding are welcome.
168185

169186
# One of the trained model is uploaded to this repository as well for reference purposes.

0 commit comments

Comments
 (0)