Assignments
Assignments are posted on Gradescope. See the welcome message for the Entry Code if you don’t have access.
- Assignment - 1 (Pandas and Scikit-Learn)
-
Assignment 1 released on Pandas and Scikit-Learn. Here is the notebook and the dataset.
Special Note for Colab Users
If you are doing this homework on Colab, you will have to take these 3 extra steps:
- copy this zipped test folder to your Colab local storage
- Add a python code cell to unzip it with
!unzip hw1_tests.zip
. You only have to run this cell once, so just comment it out after you unzipped the folder. - Add another code cell with
!pip install otter-grader
The last
grader.export
cell will give you an error, but you should be able to simply run all cell (except that last one) download your notebook from Colab and submit the.ipynb
directly to Gradescope.Good luck! And reach out on Piazza with any questions or issues.
- Assignment - 2 (Linear Algebra)
-
Assignment 2 released on Linear Algebra. Here is the notebook.
Special Note for Colab Users
If you are doing this homework on Colab, you will have to take these 3 extra steps:
- copy this zipped test folder to your Colab local storage
- Add a python code cell to unzip it with
!unzip hw2_tests.zip
. You only have to run this cell once, so just comment it out after you unzipped the folder. - Add another code cell with
!pip install otter-grader
The last
grader.export
cell will give you an error, but you should be able to simply run all cell (except that last one) download your notebook from Colab and submit the.ipynb
directly to Gradescope.Good luck! And reach out on Piazza with any questions or issues.
- Assignment - 3 (Probability, Statistics, and Distances)
-
Assignment 03
Assignment 3 released on Probability, Statistics, and Distances. Here is the notebook.
Special Note for Colab Users
If you are doing this homework on Colab, you will have to take these 3 extra steps:
- Copy this zipped test folder
to your Colab local storage
- In colab run the following commands,
!pip install rarfile
!apt-get install unrar - Copy the below code and run it in a cell after the pip installations:
import rarfile
import os
rar_file = ‘hw3_tests.rar’
with rarfile.RarFile(rar_file) as rf:
rf.extractall(‘test’) - Add another code cell with
!pip install otter-grader
The last grader.export cell will give you an error, however all other cells should run. Download your notebook from Colab and submit the .ipynb directly to Gradescope.
Good luck! Please reach out on Piazza with any questions or issues.
- Copy this zipped test folder
to your Colab local storage
- Assignment - 4 (K-Means Clustering)
-
Assignment 04
Assignment 4 released on K-Means Clustering. Here is the notebook.
Special Note for Colab Users
If you are doing this homework on Colab, you will have to take these 3 extra steps:
- Copy this zipped test folder
to your Colab local storage
- In colab run the following commands,
!pip install rarfile
!apt-get install unrar - Copy the below code and run it in a cell after the pip installations:
import rarfile
import os
rar_file = ‘hw3_tests.rar’
with rarfile.RarFile(rar_file) as rf:
rf.extractall(‘test’) - Add another code cell with
!pip install otter-grader
The last grader.export cell will give you an error, however all other cells should run. Download your notebook from Colab and submit the .ipynb directly to Gradescope.
Good luck! Please reach out on Piazza with any questions or issues.
- Copy this zipped test folder
to your Colab local storage
- Assignment - 5 (Hierarchical Clustering and GMMs)
-
Assignment 05
Assignment 5 released on Hierarchical Clustering and GMMs. Here is the notebook.
Special Note for Colab Users
If you are doing this homework on Colab, you will have to take these 3 extra steps:
- Copy this zipped test folder
to your Colab local storage
- In colab run the following commands,
!pip install rarfile
!apt-get install unrar - Copy the below code and run it in a cell after the pip installations:
import rarfile
import os
rar_file = ‘hw5_tests.rar’
with rarfile.RarFile(rar_file) as rf:
rf.extractall(‘test’) - Add another code cell with
!pip install otter-grader
The last grader.export cell will give you an error, however all other cells should run. Download your notebook from Colab and submit the .ipynb directly to Gradescope.
Good luck! Please reach out on Piazza with any questions or issues.
- Copy this zipped test folder
to your Colab local storage
- Assignment - 6 (K-nn, Decision Trees, & Random Forests)
-
Assignment 06
Assignment 6 released on K-nn, Decision Trees, & Random Forests. Here is the notebook.
Special Note for Colab Users
If you are doing this homework on Colab, you will have to take these 3 extra steps:
- Copy this zipped test folder
to your Colab local storage
- In colab run the following commands,
!pip install rarfile
!apt-get install unrar - Copy the below code and run it in a cell after the pip installations:
import rarfile
import os
rar_file = ‘hw6_tests.rar’
with rarfile.RarFile(rar_file) as rf:
rf.extractall(‘test’) - Add another code cell with
!pip install otter-grader
The last grader.export cell will give you an error, however all other cells should run. Download your notebook from Colab and submit the .ipynb directly to Gradescope.
Good luck! Please reach out on Piazza with any questions or issues.
- Copy this zipped test folder
to your Colab local storage
- Kaggle Midterm Challenge
-
Midterm
The midterm has been released.
Reade the README and complete the notebook.
The midterm will be graded manually.
Good luck! Please reach out on Piazza with any questions or issues.