Skip to content

Commit 70b0391

Browse files
authored
Merge pull request #113 from aamini/2023
2023
2 parents a3cc85b + 55e5c48 commit 70b0391

26 files changed

+3894
-927
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 [MIT 6.S191 Introduction to Deep Learning](http://introtodeeplearning.com/)
3+
Copyright (c) 2023 [MIT Introduction to Deep Learning](http://introtodeeplearning.com/)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[![banner](assets/banner.png)](http://introtodeeplearning.com)
22

3-
This repository contains all of the code and software labs for [MIT 6.S191: Introduction to Deep Learning](http://introtodeeplearning.com)! All lecture slides and videos are available on the course website.
3+
This repository contains all of the code and software labs for [MIT Introduction to Deep Learning](http://introtodeeplearning.com)! All lecture slides and videos are available on the program website.
44

55
# Instructions
6-
6.S191 software labs are designed to be completed at your own pace. At the end of each of the labs, there will be instructions on how you can submit your notebook for grade. Additionally, if you would like to submit your lab as part of the 6.S191 lab competitions, instructions regarding what information must be submitted is also provided at the end of each lab.
6+
MIT Introduction to Deep Learning software labs are designed to be completed at your own pace. At the end of each of the labs, there will be instructions on how you can submit your materials as part of the lab competitions. These instructions include what information must be submitted and in what format.
77

88
## Opening the labs in Google Colaboratory:
99

10-
The 2022 6.S191 labs will be run in Google's Colaboratory, a Jupyter notebook environment that runs entirely in the cloud, you don't need to download anything. To run these labs, you must have a Google account.
10+
The 2023 Introduction to Deep Learning labs will be run in Google's Colaboratory, a Jupyter notebook environment that runs entirely in the cloud, so you don't need to download anything. To run these labs, you must have a Google account.
1111

1212
On this Github repo, navigate to the lab folder you want to run (`lab1`, `lab2`, `lab3`) and open the appropriate python notebook (\*.ipynb). Click the "Run in Colab" link on the top of the lab. That's it!
1313

@@ -30,17 +30,17 @@ We do this for you in each of the labs, but the package is also open source unde
3030

3131
[<img src="assets/video_play.png" width="500">](https://www.youtube.com/watch?v=njKP3FqW3Sk&list=PLtBw6njQRU-rwp5__7C0oIVt26ZgjG9NI&index=1)
3232

33-
All lecture videos are available publicly online and linked above! Use and/or modification of lecture slides outside of 6.S191 must reference:
33+
All lecture videos are available publicly online and linked above! Use and/or modification of lecture slides outside of MIT Introduction to Deep Learning must reference:
3434

35-
> © MIT 6.S191: Introduction to Deep Learning
35+
> © MIT Introduction to Deep Learning
3636
>
3737
> http://introtodeeplearning.com
3838
3939
## License
40-
All code in this repository is copyright 2022 [MIT 6.S191 Introduction to Deep Learning](http://introtodeeplearning.com). All Rights Reserved.
40+
All code in this repository is copyright 2023 [MIT Introduction to Deep Learning](http://introtodeeplearning.com). All Rights Reserved.
4141

42-
Licensed under the MIT License. You may not use this file except in compliance with the License. Use and/or modification of this code outside of 6.S191 must reference:
42+
Licensed under the MIT License. You may not use this file except in compliance with the License. Use and/or modification of this code outside of MIT Introduction to Deep Learning must reference:
4343

44-
> © MIT 6.S191: Introduction to Deep Learning
44+
> © MIT Introduction to Deep Learning
4545
>
4646
> http://introtodeeplearning.com

README.md~

Lines changed: 0 additions & 44 deletions
This file was deleted.

lab1/Part1_TensorFlow.ipynb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
" <td align=\"center\"><a target=\"_blank\" href=\"http://introtodeeplearning.com\">\n",
2727
" <img src=\"https://i.ibb.co/Jr88sn2/mit.png\" style=\"padding-bottom:5px;\" />\n",
2828
" Visit MIT Deep Learning</a></td>\n",
29-
" <td align=\"center\"><a target=\"_blank\" href=\"https://colab.research.google.com/github/aamini/introtodeeplearning/blob/master/lab1/Part1_TensorFlow.ipynb\">\n",
29+
" <td align=\"center\"><a target=\"_blank\" href=\"https://colab.research.google.com/github/aamini/introtodeeplearning/blob/2023/lab1/Part1_TensorFlow.ipynb\">\n",
3030
" <img src=\"https://i.ibb.co/2P3SLwK/colab.png\" style=\"padding-bottom:5px;\" />Run in Google Colab</a></td>\n",
31-
" <td align=\"center\"><a target=\"_blank\" href=\"https://github.com/aamini/introtodeeplearning/blob/master/lab1/Part1_TensorFlow.ipynb\">\n",
31+
" <td align=\"center\"><a target=\"_blank\" href=\"https://github.com/aamini/introtodeeplearning/blob/2023/lab1/Part1_TensorFlow.ipynb\">\n",
3232
" <img src=\"https://i.ibb.co/xfJbPmL/github.png\" height=\"70px\" style=\"padding-bottom:5px;\" />View Source on GitHub</a></td>\n",
3333
"</table>\n",
3434
"\n",
@@ -42,13 +42,13 @@
4242
"id": "3eI6DUic-6jo"
4343
},
4444
"source": [
45-
"# Copyright 2022 MIT 6.S191 Introduction to Deep Learning. All Rights Reserved.\n",
45+
"# Copyright 2023 MIT Introduction to Deep Learning. All Rights Reserved.\n",
4646
"# \n",
4747
"# Licensed under the MIT License. You may not use this file except in compliance\n",
48-
"# with the License. Use and/or modification of this code outside of 6.S191 must\n",
49-
"# reference:\n",
48+
"# with the License. Use and/or modification of this code outside of MIT Introduction\n",
49+
"# to Deep Learning must reference:\n",
5050
"#\n",
51-
"# © MIT 6.S191: Introduction to Deep Learning\n",
51+
"# © MIT Introduction to Deep Learning\n",
5252
"# http://introtodeeplearning.com\n",
5353
"#"
5454
],
@@ -70,7 +70,7 @@
7070
"\n",
7171
"## 0.1 Install TensorFlow\n",
7272
"\n",
73-
"TensorFlow is a software library extensively used in machine learning. Here we'll learn how computations are represented and how to define a simple neural network in TensorFlow. For all the labs in 6.S191 2022, we'll be using the latest version of TensorFlow, TensorFlow 2, which affords great flexibility and the ability to imperatively execute operations, just like in Python. You'll notice that TensorFlow 2 is quite similar to Python in its syntax and imperative execution. Let's install TensorFlow and a couple of dependencies.\n"
73+
"TensorFlow is a software library extensively used in machine learning. Here we'll learn how computations are represented and how to define a simple neural network in TensorFlow. For all the labs in Introduction to Deep Learning 2023, we'll be using the latest version of TensorFlow, TensorFlow 2, which affords great flexibility and the ability to imperatively execute operations, just like in Python. You'll notice that TensorFlow 2 is quite similar to Python in its syntax and imperative execution. Let's install TensorFlow and a couple of dependencies.\n"
7474
]
7575
},
7676
{
@@ -82,7 +82,7 @@
8282
"%tensorflow_version 2.x\n",
8383
"import tensorflow as tf\n",
8484
"\n",
85-
"# Download and import the MIT 6.S191 package\n",
85+
"# Download and import the MIT Introduction to Deep Learning package\n",
8686
"!pip install mitdeeplearning\n",
8787
"import mitdeeplearning as mdl\n",
8888
"\n",
@@ -206,8 +206,8 @@
206206
},
207207
"source": [
208208
"row_vector = matrix[1]\n",
209-
"column_vector = matrix[:,2]\n",
210-
"scalar = matrix[1, 2]\n",
209+
"column_vector = matrix[:,1]\n",
210+
"scalar = matrix[0, 1]\n",
211211
"\n",
212212
"print(\"`row_vector`: {}\".format(row_vector.numpy()))\n",
213213
"print(\"`column_vector`: {}\".format(column_vector.numpy()))\n",
@@ -686,4 +686,4 @@
686686
]
687687
}
688688
]
689-
}
689+
}

lab1/Part2_Music_Generation.ipynb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
" <td align=\"center\"><a target=\"_blank\" href=\"http://introtodeeplearning.com\">\n",
2727
" <img src=\"https://i.ibb.co/Jr88sn2/mit.png\" style=\"padding-bottom:5px;\" />\n",
2828
" Visit MIT Deep Learning</a></td>\n",
29-
" <td align=\"center\"><a target=\"_blank\" href=\"https://colab.research.google.com/github/aamini/introtodeeplearning/blob/master/lab1/Part2_Music_Generation.ipynb\">\n",
29+
" <td align=\"center\"><a target=\"_blank\" href=\"https://colab.research.google.com/github/aamini/introtodeeplearning/blob/2023/lab1/Part2_Music_Generation.ipynb\">\n",
3030
" <img src=\"https://i.ibb.co/2P3SLwK/colab.png\" style=\"padding-bottom:5px;\" />Run in Google Colab</a></td>\n",
31-
" <td align=\"center\"><a target=\"_blank\" href=\"https://github.com/aamini/introtodeeplearning/blob/master/lab1/Part2_Music_Generation.ipynb\">\n",
31+
" <td align=\"center\"><a target=\"_blank\" href=\"https://github.com/aamini/introtodeeplearning/blob/2023/lab1/Part2_Music_Generation.ipynb\">\n",
3232
" <img src=\"https://i.ibb.co/xfJbPmL/github.png\" height=\"70px\" style=\"padding-bottom:5px;\" />View Source on GitHub</a></td>\n",
3333
"</table>\n",
3434
"\n",
@@ -41,13 +41,13 @@
4141
"id": "bUik05YqMyCH"
4242
},
4343
"source": [
44-
"# Copyright 2022 MIT 6.S191 Introduction to Deep Learning. All Rights Reserved.\n",
44+
"# Copyright 2023 MIT Introduction to Deep Learning. All Rights Reserved.\n",
4545
"# \n",
4646
"# Licensed under the MIT License. You may not use this file except in compliance\n",
47-
"# with the License. Use and/or modification of this code outside of 6.S191 must\n",
48-
"# reference:\n",
47+
"# with the License. Use and/or modification of this code outside of MIT Introduction\n",
48+
"# to Deep Learning must reference:\n",
4949
"#\n",
50-
"# © MIT 6.S191: Introduction to Deep Learning\n",
50+
"# © MIT Introduction to Deep Learning\n",
5151
"# http://introtodeeplearning.com\n",
5252
"#"
5353
],
@@ -87,7 +87,7 @@
8787
"%tensorflow_version 2.x\n",
8888
"import tensorflow as tf \n",
8989
"\n",
90-
"# Download and import the MIT 6.S191 package\n",
90+
"# Download and import the MIT Introduction to Deep Learning package\n",
9191
"!pip install mitdeeplearning\n",
9292
"import mitdeeplearning as mdl\n",
9393
"\n",
@@ -932,13 +932,15 @@
932932
"* What if you alter or augment the dataset? \n",
933933
"* Does the choice of start string significantly affect the result? \n",
934934
"\n",
935-
"Try to optimize your model and submit your best song! **MIT students and affiliates will be eligible for prizes during the IAP offering**. To enter the competition, MIT students and affiliates should upload the following to the course Canvas:\n",
935+
"Try to optimize your model and submit your best song! **Participants will be eligible for prizes during the January 2023 offering. To enter the competition, you must upload the following to [this submission link](https://www.dropbox.com/request/Xj9iI1JXLsDy5FWgug7s):**\n",
936936
"\n",
937937
"* a recording of your song;\n",
938938
"* iPython notebook with the code you used to generate the song;\n",
939939
"* a description and/or diagram of the architecture and hyperparameters you used -- if there are any additional or interesting modifications you made to the template code, please include these in your description.\n",
940940
"\n",
941-
"You can also tweet us at [@MITDeepLearning](https://twitter.com/MITDeepLearning) a copy of the song! See this example song generated by a previous 6.S191 student (credit Ana Heart): <a href=\"https://twitter.com/AnaWhatever16/status/1263092914680410112?s=20\">song from May 20, 2020.</a>\n",
941+
"**Name your file in the following format: ``[FirstName]_[LastName]_RNNMusic``, followed by the file format (.zip, .mp4, .ipynb, .pdf, etc). ZIP files of all three components are preferred over individual files. If you submit individual files, you must name the individual files according to the above nomenclature.**\n",
942+
"\n",
943+
"You can also tweet us at [@MITDeepLearning](https://twitter.com/MITDeepLearning) a copy of the song (but this will not enter you into the competition)! See this example song generated by a previous student (credit Ana Heart): <a href=\"https://twitter.com/AnaWhatever16/status/1263092914680410112?s=20\">song from May 20, 2020.</a>\n",
942944
"<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>\n",
943945
"\n",
944946
"Have fun and happy listening!\n",
@@ -947,4 +949,4 @@
947949
]
948950
}
949951
]
950-
}
952+
}

lab1/solutions/Part1_TensorFlow_Solution.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
" <td align=\"center\"><a target=\"_blank\" href=\"http://introtodeeplearning.com\">\n",
2727
" <img src=\"https://i.ibb.co/Jr88sn2/mit.png\" style=\"padding-bottom:5px;\" />\n",
2828
" Visit MIT Deep Learning</a></td>\n",
29-
" <td align=\"center\"><a target=\"_blank\" href=\"https://colab.research.google.com/github/aamini/introtodeeplearning/blob/master/lab1/solutions/Part1_TensorFlow_Solution.ipynb\">\n",
29+
" <td align=\"center\"><a target=\"_blank\" href=\"https://colab.research.google.com/github/aamini/introtodeeplearning/blob/2023/lab1/solutions/Part1_TensorFlow_Solution.ipynb\">\n",
3030
" <img src=\"https://i.ibb.co/2P3SLwK/colab.png\" style=\"padding-bottom:5px;\" />Run in Google Colab</a></td>\n",
31-
" <td align=\"center\"><a target=\"_blank\" href=\"https://github.com/aamini/introtodeeplearning/blob/master/lab1/solutions/Part1_TensorFlow_solution.ipynb\">\n",
31+
" <td align=\"center\"><a target=\"_blank\" href=\"https://github.com/aamini/introtodeeplearning/blob/2023/lab1/solutions/Part1_TensorFlow_Solution.ipynb\">\n",
3232
" <img src=\"https://i.ibb.co/xfJbPmL/github.png\" height=\"70px\" style=\"padding-bottom:5px;\" />View Source on GitHub</a></td>\n",
3333
"</table>\n",
3434
"\n",
@@ -41,13 +41,13 @@
4141
"id": "3eI6DUic-6jo"
4242
},
4343
"source": [
44-
"# Copyright 2022 MIT 6.S191 Introduction to Deep Learning. All Rights Reserved.\n",
44+
"# Copyright 2023 MIT Introduction to Deep Learning. All Rights Reserved.\n",
4545
"# \n",
4646
"# Licensed under the MIT License. You may not use this file except in compliance\n",
47-
"# with the License. Use and/or modification of this code outside of 6.S191 must\n",
48-
"# reference:\n",
47+
"# with the License. Use and/or modification of this code outside of MIT Introduction\n",
48+
"# to Deep Learning must reference:\n",
4949
"#\n",
50-
"# © MIT 6.S191: Introduction to Deep Learning\n",
50+
"# © MIT Introduction to Deep Learning\n",
5151
"# http://introtodeeplearning.com\n",
5252
"#"
5353
],
@@ -69,7 +69,7 @@
6969
"\n",
7070
"## 0.1 Install TensorFlow\n",
7171
"\n",
72-
"TensorFlow is a software library extensively used in machine learning. Here we'll learn how computations are represented and how to define a simple neural network in TensorFlow. For all the labs in 6.S191 2022, we'll be using the latest version of TensorFlow, TensorFlow 2, which affords great flexibility and the ability to imperatively execute operations, just like in Python. You'll notice that TensorFlow 2 is quite similar to Python in its syntax and imperative execution. Let's install TensorFlow and a couple of dependencies.\n"
72+
"TensorFlow is a software library extensively used in machine learning. Here we'll learn how computations are represented and how to define a simple neural network in TensorFlow. For all the labs in Introduction to Deep Learning 2023, we'll be using the latest version of TensorFlow, TensorFlow 2, which affords great flexibility and the ability to imperatively execute operations, just like in Python. You'll notice that TensorFlow 2 is quite similar to Python in its syntax and imperative execution. Let's install TensorFlow and a couple of dependencies.\n"
7373
]
7474
},
7575
{
@@ -81,7 +81,7 @@
8181
"%tensorflow_version 2.x\n",
8282
"import tensorflow as tf\n",
8383
"\n",
84-
"# Download and import the MIT 6.S191 package\n",
84+
"# Download and import the MIT Introduction to Deep Learning package\n",
8585
"!pip install mitdeeplearning\n",
8686
"import mitdeeplearning as mdl\n",
8787
"\n",
@@ -207,8 +207,8 @@
207207
},
208208
"source": [
209209
"row_vector = matrix[1]\n",
210-
"column_vector = matrix[:,2]\n",
211-
"scalar = matrix[1, 2]\n",
210+
"column_vector = matrix[:,1]\n",
211+
"scalar = matrix[0, 1]\n",
212212
"\n",
213213
"print(\"`row_vector`: {}\".format(row_vector.numpy()))\n",
214214
"print(\"`column_vector`: {}\".format(column_vector.numpy()))\n",

0 commit comments

Comments
 (0)