Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Torch downgrade removed from W3D3 (NeuromatchAcademy#905) #934

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,6 @@
"# Setup"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Downgrade `pytorch` to avoid CUDA Memory allocation error.\n",
"!pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 torchtext==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu113 --quiet"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -1009,7 +996,7 @@
"```\n",
"Network performance after 10 encoder and classifier training epochs (chance: 33.33%):\n",
" Training accuracy: 100.00%\n",
" Testing accuracy: 98.67%\n",
" Testing accuracy: 98.70%\n",
"````"
]
},
Expand Down Expand Up @@ -1082,7 +1069,7 @@
"execution": {}
},
"source": [
"When the classifier is trained with an encoder network, however, it achieves very high classification accuracy (98.72%) on the test set, after only 10 training epochs."
"When the classifier is trained with an encoder network, however, it achieves very high classification accuracy (~98.70%) on the test set, after only 10 training epochs."
]
},
{
Expand All @@ -1095,7 +1082,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised |\n",
"| - | - | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% |"
"| _33.33%_ | | 39.55% | 98.70% |"
]
},
{
Expand Down Expand Up @@ -1956,7 +1943,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random |\n",
"| - | - | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% |"
]
},
{
Expand Down Expand Up @@ -2532,7 +2519,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random | VAE |\n",
"| - | - | --- | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% | 45.75% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% | 45.75% |"
]
},
{
Expand Down Expand Up @@ -3163,7 +3150,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random | VAE | SimCLR |\n",
"| - | - | --- | --- | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% | 45.75% | 97.53% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% | 45.75% | 97.53% |"
]
},
{
Expand Down Expand Up @@ -4462,7 +4449,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random | VAE | SimCLR | SimCLR (few neg.pairs) |\n",
"| - | - | --- | --- | --- | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% | 45.75% | 97.53% | 66.75% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% | 45.75% | 97.53% | 66.75% |"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,6 @@
"# Setup"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Downgrade `pytorch` to avoid CUDA Memory allocation error.\n",
"!pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 torchtext==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu113 --quiet"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -1011,7 +998,7 @@
"```\n",
"Network performance after 10 encoder and classifier training epochs (chance: 33.33%):\n",
" Training accuracy: 100.00%\n",
" Testing accuracy: 98.67%\n",
" Testing accuracy: 98.70%\n",
"````"
]
},
Expand Down Expand Up @@ -1084,7 +1071,7 @@
"execution": {}
},
"source": [
"When the classifier is trained with an encoder network, however, it achieves very high classification accuracy (98.72%) on the test set, after only 10 training epochs."
"When the classifier is trained with an encoder network, however, it achieves very high classification accuracy (~98.70%) on the test set, after only 10 training epochs."
]
},
{
Expand All @@ -1097,7 +1084,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised |\n",
"| - | - | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% |"
"| _33.33%_ | | 39.55% | 98.70% |"
]
},
{
Expand Down Expand Up @@ -1964,7 +1951,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random |\n",
"| - | - | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% |"
]
},
{
Expand Down Expand Up @@ -2542,7 +2529,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random | VAE |\n",
"| - | - | --- | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% | 45.75% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% | 45.75% |"
]
},
{
Expand Down Expand Up @@ -3175,7 +3162,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random | VAE | SimCLR |\n",
"| - | - | --- | --- | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% | 45.75% | 97.53% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% | 45.75% | 97.53% |"
]
},
{
Expand Down Expand Up @@ -4476,7 +4463,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random | VAE | SimCLR | SimCLR (few neg.pairs) |\n",
"| - | - | --- | --- | --- | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% | 45.75% | 97.53% | 66.75% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% | 45.75% | 97.53% | 66.75% |"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,6 @@
"# Setup"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Downgrade `pytorch` to avoid CUDA Memory allocation error.\n",
"!pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 torchtext==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu113 --quiet"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -1009,7 +996,7 @@
"```\n",
"Network performance after 10 encoder and classifier training epochs (chance: 33.33%):\n",
" Training accuracy: 100.00%\n",
" Testing accuracy: 98.67%\n",
" Testing accuracy: 98.70%\n",
"````"
]
},
Expand Down Expand Up @@ -1043,7 +1030,7 @@
"execution": {}
},
"source": [
"When the classifier is trained with an encoder network, however, it achieves very high classification accuracy (98.72%) on the test set, after only 10 training epochs."
"When the classifier is trained with an encoder network, however, it achieves very high classification accuracy (~98.70%) on the test set, after only 10 training epochs."
]
},
{
Expand All @@ -1056,7 +1043,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised |\n",
"| - | - | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% |"
"| _33.33%_ | | 39.55% | 98.70% |"
]
},
{
Expand Down Expand Up @@ -1757,7 +1744,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random |\n",
"| - | - | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% |"
]
},
{
Expand Down Expand Up @@ -2226,7 +2213,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random | VAE |\n",
"| - | - | --- | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% | 45.75% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% | 45.75% |"
]
},
{
Expand Down Expand Up @@ -2791,7 +2778,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random | VAE | SimCLR |\n",
"| - | - | --- | --- | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% | 45.75% | 97.53% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% | 45.75% | 97.53% |"
]
},
{
Expand Down Expand Up @@ -3856,7 +3843,7 @@
"\n",
"| _Chance_ | | None (raw data) | Supervised | Random | VAE | SimCLR | SimCLR (few neg.pairs) |\n",
"| - | - | --- | --- | --- | --- | --- | --- |\n",
"| _33.33%_ | | 39.55% | 98.67% | 44.67% | 45.75% | 97.53% | 66.75% |"
"| _33.33%_ | | 39.55% | 98.70% | 44.67% | 45.75% | 97.53% | 66.75% |"
]
},
{
Expand Down