Skip to content

Commit a8ef059

Browse files
committed
Created using Colab
1 parent 58f372b commit a8ef059

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

colab_notebooks/Notebook05_Train_ANNs_PyTorch.ipynb

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
"print('done')\n"
4949
],
5050
"metadata": {
51-
"id": "oIRURpRogYRE",
52-
"outputId": "80525e6a-ca80-4eb5-a57c-8303072b232a",
5351
"colab": {
5452
"base_uri": "https://localhost:8080/"
55-
}
53+
},
54+
"id": "oIRURpRogYRE",
55+
"outputId": "80525e6a-ca80-4eb5-a57c-8303072b232a"
5656
},
5757
"execution_count": 1,
5858
"outputs": [
@@ -273,10 +273,10 @@
273273
"execution_count": 5,
274274
"metadata": {
275275
"id": "6i9J5bvHLGab",
276-
"outputId": "332c7f67-b6d1-495b-9bbe-89e62736a603",
277276
"colab": {
278277
"base_uri": "https://localhost:8080/"
279-
}
278+
},
279+
"outputId": "332c7f67-b6d1-495b-9bbe-89e62736a603"
280280
},
281281
"outputs": [
282282
{
@@ -383,11 +383,11 @@
383383
"execution_count": 6,
384384
"metadata": {
385385
"id": "T5PYJPbGLGac",
386-
"outputId": "9174a3cc-34f3-400d-87ba-b35c27e1a535",
387386
"colab": {
388387
"base_uri": "https://localhost:8080/",
389388
"height": 480
390-
}
389+
},
390+
"outputId": "9174a3cc-34f3-400d-87ba-b35c27e1a535"
391391
},
392392
"outputs": [
393393
{
@@ -449,10 +449,10 @@
449449
"execution_count": 7,
450450
"metadata": {
451451
"id": "Q-9GVaRELGac",
452-
"outputId": "1b05f4e7-9d65-4e26-8355-502c1aaa23ff",
453452
"colab": {
454453
"base_uri": "https://localhost:8080/"
455-
}
454+
},
455+
"outputId": "1b05f4e7-9d65-4e26-8355-502c1aaa23ff"
456456
},
457457
"outputs": [
458458
{
@@ -536,11 +536,11 @@
536536
"execution_count": 8,
537537
"metadata": {
538538
"id": "FI2nlUk6LGad",
539-
"outputId": "1d8cdc21-dc93-4651-8210-a4ab6ead6542",
540539
"colab": {
541540
"base_uri": "https://localhost:8080/",
542541
"height": 615
543-
}
542+
},
543+
"outputId": "1d8cdc21-dc93-4651-8210-a4ab6ead6542"
544544
},
545545
"outputs": [
546546
{
@@ -664,10 +664,10 @@
664664
"execution_count": 9,
665665
"metadata": {
666666
"id": "LwqARkzNLGad",
667-
"outputId": "c09fc45e-7f93-416a-e947-dca3b590bee8",
668667
"colab": {
669668
"base_uri": "https://localhost:8080/"
670-
}
669+
},
670+
"outputId": "c09fc45e-7f93-416a-e947-dca3b590bee8"
671671
},
672672
"outputs": [
673673
{
@@ -754,11 +754,11 @@
754754
"execution_count": 10,
755755
"metadata": {
756756
"id": "sBLl7wIbLGae",
757-
"outputId": "49f51092-630f-4e54-8574-489296cf01b0",
758757
"colab": {
759758
"base_uri": "https://localhost:8080/",
760759
"height": 480
761-
}
760+
},
761+
"outputId": "49f51092-630f-4e54-8574-489296cf01b0"
762762
},
763763
"outputs": [
764764
{
@@ -809,11 +809,11 @@
809809
"execution_count": 11,
810810
"metadata": {
811811
"id": "8Lp_mDUeLGae",
812-
"outputId": "c2780e41-b680-4819-f993-73d14bc0283a",
813812
"colab": {
814813
"base_uri": "https://localhost:8080/",
815814
"height": 480
816-
}
815+
},
816+
"outputId": "c2780e41-b680-4819-f993-73d14bc0283a"
817817
},
818818
"outputs": [
819819
{
@@ -859,11 +859,11 @@
859859
"execution_count": 12,
860860
"metadata": {
861861
"id": "0TRWjEE0LGaf",
862-
"outputId": "60ef2a3a-9ac9-4817-96df-89a85015b2cc",
863862
"colab": {
864863
"base_uri": "https://localhost:8080/",
865864
"height": 505
866-
}
865+
},
866+
"outputId": "60ef2a3a-9ac9-4817-96df-89a85015b2cc"
867867
},
868868
"outputs": [
869869
{
@@ -910,10 +910,10 @@
910910
"execution_count": 13,
911911
"metadata": {
912912
"id": "TQARyBTPLGaf",
913-
"outputId": "18816347-3cc5-4c58-b3f9-6f8b7b7a3f46",
914913
"colab": {
915914
"base_uri": "https://localhost:8080/"
916-
}
915+
},
916+
"outputId": "18816347-3cc5-4c58-b3f9-6f8b7b7a3f46"
917917
},
918918
"outputs": [
919919
{
@@ -948,10 +948,10 @@
948948
"execution_count": 14,
949949
"metadata": {
950950
"id": "XmvVMvQBLGaf",
951-
"outputId": "6c6f89b0-0cb9-4df0-8726-eb878a334b8e",
952951
"colab": {
953952
"base_uri": "https://localhost:8080/"
954-
}
953+
},
954+
"outputId": "6c6f89b0-0cb9-4df0-8726-eb878a334b8e"
955955
},
956956
"outputs": [
957957
{
@@ -1020,10 +1020,10 @@
10201020
"execution_count": 16,
10211021
"metadata": {
10221022
"id": "vtQb2FUpLGag",
1023-
"outputId": "228541cc-c118-4fb6-9877-f5418e452c87",
10241023
"colab": {
10251024
"base_uri": "https://localhost:8080/"
1026-
}
1025+
},
1026+
"outputId": "228541cc-c118-4fb6-9877-f5418e452c87"
10271027
},
10281028
"outputs": [
10291029
{
@@ -1071,11 +1071,11 @@
10711071
"execution_count": 17,
10721072
"metadata": {
10731073
"id": "I8HNao2FLGah",
1074-
"outputId": "44854dd8-f612-446e-c701-1ea65efdbf72",
10751074
"colab": {
10761075
"base_uri": "https://localhost:8080/",
10771076
"height": 968
1078-
}
1077+
},
1078+
"outputId": "44854dd8-f612-446e-c701-1ea65efdbf72"
10791079
},
10801080
"outputs": [
10811081
{
@@ -1144,10 +1144,10 @@
11441144
"execution_count": 20,
11451145
"metadata": {
11461146
"id": "H5eFhmUlPEnV",
1147-
"outputId": "ec151103-c331-407f-eabe-c195a28fc9af",
11481147
"colab": {
11491148
"base_uri": "https://localhost:8080/"
1150-
}
1149+
},
1150+
"outputId": "ec151103-c331-407f-eabe-c195a28fc9af"
11511151
},
11521152
"outputs": [
11531153
{
@@ -1253,7 +1253,9 @@
12531253
"id": "_WUjr_vHLGah"
12541254
},
12551255
"source": [
1256-
"Voila! NB: The classifier ANN model from the paper was trained with different hyperparamters such as using MAE/L1Loss as the loss function, and Adam as the optimizer, not BCELoss as our models in this notebook. That leads to the different performance.\n",
1256+
"Voila!\n",
1257+
"\n",
1258+
"NB: The classifier ANN model from the paper was trained with different hyperparamters such as using MAE/L1Loss as the loss function, and Adam as the optimizer (not BCELoss / RMSProp as our models in this notebook). Those differences result in different model performance.\n",
12571259
"\n",
12581260
"\n",
12591261
"Now you can hopefully do end-to-end neural networks. The next notebook will jump into convolutions.\n"

0 commit comments

Comments
 (0)