Welcome ot the CSCN8010 course repository. This is where the course notebooks will be (specifically, they will be in the class_notebooks
folder. This is what the instructor will present in class)
- You are welcome to
fork
this repository, to get your own copy on your own personal account.Clone
this fork to your laptop. - It is advised to create a new folder which will contain the class notebooks with your own editions. This way, you will have the original notebooks in the
class_notebooks
and your modified notebooks in your own folder. This is helpful specifically since the files are Jupyter notebooks, whose metadata and cell outputs can makegit diff
for syncing changes a bit of a mess sometimes. - Create a virtual environment, run the following commands from the root folder:
- Initialize a virtual environment:
python -m venv venv/CSCN8010_classic_ml
- Activate the virtual environment:
- Linux or Mac:
source ./venv/CSCN8010_classic_ml/bin/activate
- Windows Powershell:
.\venv\CSCN8010_classic_ml\Scripts\Activate.ps1
- Linux or Mac:
- Install the Python packages:
pip install -r requirements.txt
- Install ipykernel:
python -m ipykernel install --user --name=CSCN8010_classic_ml --display-name=CSCN8010_classic_ml
- Initialize a virtual environment:
- Setting Up vscode to work with Notebooks and Virtual Environments:
- vscode needs to be restarted after setting up the virtual environments for the first time. Otherwise, the environments will not be visible in vscode.
- To run Python notebooks in vscode, you first need to install the Python extension by Microsoft (done via the Extensions menu on the left sidebar).
- Then, open a notebook and set the right kernel (either python_cpu or tensorflow_cpu, depending of what the notebook is using). Setting the kernel is done on the top right side in vscode.
- Note that if you see wiggly orange lines below the package names in the import statement, change the interpreter to that of the virtual environment by typing in the command-palette Python: Select Interpreter (stackoverflow).
- Test your environment by running the test file in the
class_notebooks
folder.