Skip to content

Commit

Permalink
Fix to MNIST classifier tutorial (#154)
Browse files Browse the repository at this point in the history
* fixes #112"

* update nb
  • Loading branch information
FyzHsn authored Mar 3, 2022
1 parent e4b3ef8 commit 86c7bf7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.28.2] - 2022-03-03

### Added

- A brief overview of the tutorial structure in the MNIST classification tutorial.

## [0.28.1] - 2022-03-02

### Added
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.28.1
0.28.2
26 changes: 18 additions & 8 deletions doc/source/tutorials/machine_learning/mnist_classifier.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,28 @@
"source": [
"# MNIST classifier tutorial\n",
"\n",
"MNIST database of handwritten digits is a popular dataset to demonstrate machine learning classifiers. The dataset is comprised of handwritten digits with the corresponding ground truth label. In this tutorial (based on [1]), we train a basic Neural Network (NN) classifier using PyTorch. Once the classifier training workflow has been defined, it is easily converted into a Covalent workflow. This workflow can then be \"dispatched\" for execution and the task completion status / details tracked in the Covalent user interface (UI)."
"MNIST database of handwritten digits is a popular dataset to demonstrate machine learning classifiers. The dataset is comprised of handwritten digits with the corresponding ground truth label. In this tutorial (based on [1]), we train a basic Neural Network (NN) classifier using PyTorch. \n",
"\n",
"A sample of the MNIST dataset:\n",
"\n",
"<div align=\"center\">\n",
"<img src=\"././mnist_images/mnist_examples.png\" style=\"width: 45%; height: 45%\"/>\n",
"</div>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"A sample of the MNIST dataset:\n",
"\n",
"<div align=\"center\">\n",
"<img src=\"././mnist_images/mnist_examples.png\" style=\"width: 45%; height: 45%\"/>\n",
"</div>\n"
"\n",
"The tutorial has two main parts: \n",
"\n",
"- First, a \"normal\" workflow function (without using Covalent) is defined to train the MNIST classifier.\n",
"\n",
"- Second, this workflow is converted into a Covalent workflow, which is then \"dispatched\" for execution. \n",
"\n",
"Lastly, we review the key benefits that are unlocked when transforming a \"normal\" workflow with Covalent. One major advantage of a Covalent workflow is that the task dependencies and execution details can be tracked easily in the Covalent user interface (UI)."
]
},
{
Expand Down Expand Up @@ -90,7 +100,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Construct MNIST classifier training workflow\n",
"### Construct MNIST classifier training workflow (without Covalent)\n",
"\n",
"Construct a convolutional neural network model by inheriting from `torch.nn.Module`."
]
Expand Down Expand Up @@ -354,7 +364,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Run MNIST classifier workflow as a normal function\n",
"#### Run MNIST classifier workflow as a normal function (without Covalent)\n",
"\n",
"Run the MNIST classifier workflow to benchmark the performance and the time taken to train and test the model."
]
Expand Down Expand Up @@ -426,7 +436,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Run workflow with Covalent\n",
"### Transform and run workflow with Covalent\n",
"\n",
"First, we convert the normal workflow function into a Covalent workflow function.\n",
"\n",
Expand Down

0 comments on commit 86c7bf7

Please sign in to comment.