How to Download/Run/Submit#

Joining the Class on Gradescope#

  1. Create an account on Gradescope using your Wellesley College email.

  2. Join the course using the entry code 4DJ22J.

Downloading the Homework#

  1. Log into DeepNote using your Wellesley College email.

  2. Go to homework link.

  3. Duplicate the homework as private. You can do this by clicking on the “…” on the top right corner of the screen, and selected “Duplicate project”. When the dialog box pops up, make sure to click the ‘make private’ button.

  4. After the project has been duplicated. Rename it to say: HW-N: FIRST LAST, where N is the homework number, and FIRST and LAST are your first and last names.

DeepNote Setup#

Disabling Generative AI. Follow these instructions to disable any Generative AI or autocomplete in your notebook.

Increasing Notebook Timeout. If you notice that after a few minutes, the machine running your notebook shut off, you’re welcome to increase the timeout following these instructions.

Submitting Homework#

Please follow these instructions to submit your homeworks:

  1. Run your notebook from start to finish in DeepNote. This ensures the output of your code is visible for the graders.

  2. Then download the .ipynb file(s) and upload it to Gradescope.

  3. On DeepNote, go to “security” under your account settings; enable “Allow projects to be shared publicly”. Then go to your homework project, click “Share”, and copy the link to your project.

  4. Test that the link will be visible to the graders by pasting it to an incognito browser window. Your homework will not be graded if we cannot access this link.

  5. Finally, submit the link with your reflection, linked as a Google Form from the course schedule.

Including Graphics in DeepNote#

For some of the assignments, you’ll have to draw figures (by hand, in google slides, or in some other way). To include these figures in a DeepNote notebook, follow these steps:

  1. Upload your image to the figs directory in DeepNote.

  2. Make sure this import statement is included: from IPython.display import Image.

  3. In a code cell, write Image('figs/FILENAME').

Running Code Locally#

The benefit of working in DeepNote is that no student should have installation issues—the environment is uniform for all students, and we’ve already taken care to ensure everything works. Students who prefer to complete the assignments locally on their own machines can follow the instructions here. However, we note that we unfortunately cannot help troubleshoot installation issues.

  1. Create a virtual python environment with python \(3.10\). We recommend using Micromamba for this.

  2. Then run the following commands in your terminal:

# Install Python packages
wget -O "requirements.txt" "https://raw.githubusercontent.com/mogu-lab/probabilistic-foundations-of-ml/master/requirements.txt"
pip install -r ./requirements.txt

# Get the course's helper libraries
wget -O "deepnote_init.py" "https://raw.githubusercontent.com/mogu-lab/probabilistic-foundations-of-ml/master/scripts/deepnote_init.py"
python deepnote_init.py

# Create a directory for uploading figures
mkdir -p figs