This repository contains Python code in the form of interactive Jupyter notebooks that are meant to provide practical demonstrations of theoretical concepts discussed in class. You'll be using this code in your homework assignments!
- If you're new to programming/Python/Jupyter Notebooks, we recommend running the code on Google Colab.
- If you'd prefer to run notebooks locally, we provide Conda environment files (
environment.yml) that you can use to generate reproducible environments by runningconda create -f <path_to_environment.yml>.
For these homework assigments, most of the code is written for you. The provided utility functions should make it easy for you to solve the assignment: your job will primarily be to evaluate the functions with different parameters and interpret the output. If you have any trouble, start a Canvas discussion, attend office hours, or email us!
A notebook contains multiple cells. Each is either a Markdown cell (plain-text documentation) or a code cell (Python, can be executed). The Markdown cells contain information that you should read through. The code cells can be run by pressing the run button on the top-left of each cell or by pressing Ctrl+Enter when in the cell.
- Sorry, you'll need to create a Google account to use Colab.
- Download the files in this repository by clicking the green
Codebutton followed byDownload ZIP. - Extract the files from the ZIP archive using whatever tool your OS provides.
- Open a Google Colab instance.
- Navigate to
File > Open notebook(orCtrl+O). - On the GitHub tab, enter the URL as
raj-magesh/pmvc-fa22and click the search button. - Click on the
homework_<N>/<NOTEBOOK>.ipynblink. - Click on the
Connect/Reconnectbutton (top-right, next toEditing). This will connect your notebook to a Google server where the code will be run.
To upload ay provided data:
- Click on the small folder icon on the left pane. This should open a panel on the left with a file browser interface.
- Right-click on the file browser panel, click
New folder, and create a new directory calleddata. - Right-click the
datadirectory and clickUpload, then select all the files underhomework_<N>/datathat you got in Step 2 after extracting the ZIP archive. - You are ready to run the notebook!