Skip to content

Commit b105ece

Browse files
Adding a Colab Link
1 parent f1a2c3a commit b105ece

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

Pytorch_CustomNN.ipynb

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,26 @@
44
"metadata": {
55
"colab": {
66
"name": "Pytorch-CustomNN.ipynb",
7-
"provenance": []
7+
"provenance": [],
8+
"authorship_tag": "ABX9TyPBW4PQr9fHB137OwCNyfyG",
9+
"include_colab_link": true
810
},
911
"kernelspec": {
1012
"name": "python3",
1113
"display_name": "Python 3"
1214
}
1315
},
1416
"cells": [
17+
{
18+
"cell_type": "markdown",
19+
"metadata": {
20+
"id": "view-in-github",
21+
"colab_type": "text"
22+
},
23+
"source": [
24+
"<a href=\"https://colab.research.google.com/github/manthanthakker/DeepNeuralNetworks/blob/master/Pytorch_CustomNN.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
25+
]
26+
},
1527
{
1628
"cell_type": "markdown",
1729
"metadata": {
@@ -85,11 +97,11 @@
8597
"metadata": {
8698
"id": "ZiE_QO0Yl1OT",
8799
"colab_type": "code",
100+
"outputId": "749b54fa-4f0d-4471-b987-c65e6f7150da",
88101
"colab": {
89102
"base_uri": "https://localhost:8080/",
90103
"height": 1000
91-
},
92-
"outputId": "749b54fa-4f0d-4471-b987-c65e6f7150da"
104+
}
93105
},
94106
"source": [
95107
"data = load_breast_cancer()\n",
@@ -102,7 +114,7 @@
102114
"\n",
103115
"print(data.DESCR)"
104116
],
105-
"execution_count": 264,
117+
"execution_count": 0,
106118
"outputs": [
107119
{
108120
"output_type": "stream",
@@ -290,11 +302,11 @@
290302
"metadata": {
291303
"id": "IQhRWI7Xo6Ey",
292304
"colab_type": "code",
305+
"outputId": "7af48883-5fde-47a0-a946-8115651eecc9",
293306
"colab": {
294307
"base_uri": "https://localhost:8080/",
295308
"height": 119
296-
},
297-
"outputId": "7af48883-5fde-47a0-a946-8115651eecc9"
309+
}
298310
},
299311
"source": [
300312
"print(model.parameters())\n",
@@ -313,7 +325,7 @@
313325
"# FC 2 Bias Parameters\n",
314326
"print(list(model.parameters())[3].size())"
315327
],
316-
"execution_count": 266,
328+
"execution_count": 0,
317329
"outputs": [
318330
{
319331
"output_type": "stream",
@@ -366,11 +378,11 @@
366378
"metadata": {
367379
"id": "-Oqroxt4o-fi",
368380
"colab_type": "code",
381+
"outputId": "22fa6e3d-dcc1-4546-b7ef-3b354fe13b0e",
369382
"colab": {
370383
"base_uri": "https://localhost:8080/",
371384
"height": 952
372-
},
373-
"outputId": "22fa6e3d-dcc1-4546-b7ef-3b354fe13b0e"
385+
}
374386
},
375387
"source": [
376388
"input_dim = 30\n",
@@ -419,7 +431,7 @@
419431
" # Print Loss\n",
420432
" print('Iteration: {}. Loss: {}'.format(iter, loss.item()))"
421433
],
422-
"execution_count": 269,
434+
"execution_count": 0,
423435
"outputs": [
424436
{
425437
"output_type": "stream",
@@ -499,11 +511,11 @@
499511
"metadata": {
500512
"id": "7Fh2KKOxh2uO",
501513
"colab_type": "code",
514+
"outputId": "5c7eb9ac-1b39-4025-e7d8-9859df873940",
502515
"colab": {
503516
"base_uri": "https://localhost:8080/",
504517
"height": 34
505-
},
506-
"outputId": "5c7eb9ac-1b39-4025-e7d8-9859df873940"
518+
}
507519
},
508520
"source": [
509521
"with torch.no_grad():\n",
@@ -532,7 +544,7 @@
532544
" accuracy = 100 * correct / total\n",
533545
" print('Iteration: {}. Loss: {}. Accuracy: {}'.format(iter, loss.item(), accuracy))"
534546
],
535-
"execution_count": 270,
547+
"execution_count": 0,
536548
"outputs": [
537549
{
538550
"output_type": "stream",

0 commit comments

Comments
 (0)