Dr. Mohammad M. Khajah
Associate Research Scientist
Systems and Software Development
Department (SSDD)
This repository contains all the materials for my KISR course on neural networks.
We will use Miniconda
, a free minimal installer of Python and its related packages.
Download and run the Miniconda 3 Windows 64-bit installer. Don't change the default options in the installer.
For Intel Based Macs Follow the instructions to install Miniconda on Mac OS.
For M1 Based Macs Download the community-supported version of miniconda, known as miniforge, then install from the Terminal application as follows:
bash Miniforge3-MacOSX-arm64.sh
-
In Windows, launch the
Anaconda Prompt (miniconda3)
application (open the start menu and just start typing the application name until you find it), orTerminal
in Mac OS. -
Create a conda environment named
nncourse
.
conda create -n nncourse
A virtual environment lets developers isolate different versions of the same package. Python packages add extra functionality, such as plotting diagrams, machine learning, linear algebra, web development, etc.
- Activate the
nncourse
environment.
conda activate nncourse
- Install the required packages for this course into the
nncourse
environment.
For non-Apple M1 machines:
conda install numpy pandas matplotlib scikit-learn tensorflow
For Apple M1:
conda install -c apple tensorflow-deps
python -m pip install tensorflow-macos
conda install pandas matplotlib scikit-learn
numpy
is the most fundamental library for math, vector, and matrix operations. pandas
makes it easy to interact with tabular data (csv and excel files). matplotlib
is used for plotting diagrams. tensorflow
lets us build neural network models.
- Install the
jupyterlab
package from the third-party package repository known as condaforge:
conda install -c conda-forge jupyterlab
jupyterlab
is an interactive web-browser based layer on top of Python that makes it easy to mix rich documentation and code.
- You can close the terminal now.
All coding in this course will be done within the jupyter notebook. To launch it:
-
Launch the
Anaconda Prompt (miniconda3)
application in Windows orTerminal
in Mac OS. -
Activate the
nncourse
environment you created earlier.
conda activate nncourse
- Launch jupyter lab:
jupyter lab
This will launch a local web server running Jupyter and then it will run a web browser and point it to the local server's address. If the browser does not run, copy the URL that appears in the console and paste it into a web browser.
Do NOT close the prompt/terminal application while jupyter is running, as you'd kill the local Jupyter server.
- You can now navigate your local file system via the left side pane in the browser.
-
On the course's Github page, click the green "Code" button.
-
From the drop down menu, click "Download ZIP".
-
Uncompress the downloaded file into a convenient location (e.g., the desktop).
-
Within the open jupyter lab tab in your web browser, navigate to the location where you uncompressed the file.
-
Double click on one of the
.ipynb
files in the left pane to open it in the right pane. -
Jupyter notebooks consist of cells. Each cell can be Python code or Markdown (documentation) or plain text. Click on the play button at the top of the notebook to execute the current cell and move to the next one. You can also press
Shift+Enter
to do this.
-
Python Numpy Tutorial: http://cs231n.github.io/python-numpy-tutorial/
-
Stanford's CS231N class: http://cs231n.github.io/