A tutorial introduction to neural networks, with an eye towards linguistic applications. The repository contains slides as well as a Jupyter Notebook with a hands-on demonstration of basic techniques in building and training a neural network for a semantic task.
I recommend using conda
from the Anaconda Distribution: https://www.anaconda.com/. My instructions are for UNIX systems (OS X and Linux), but Anaconda should make it easy to follow these steps on Windows as well.
Once installed, you can execute the following:
conda create -n nn-tutorial python=3.7
conda activate nn-tutorial
conda install pytorch torchvision jupyter pandas -c pytorch
conda install plotnine -c conda-forge
Note: if you end up having trouble with the Jupyter notebook not being able to find the packages you've installed in your environment, it isn't using the right kernel, and the following may solve this problem (in any case it won't hurt):
conda install nb_conda_kernels
It can be helpful to conda deactivate
from the nn-tutorial
environment first. Then:
cd DIR
, where DIR is a directory of your choicegit clone https://github.com/shanest/nn-tutorial.git
- Alternatively: download the
zip
file from GitHub and extract it to your directory. conda activate nn-tutorial
jupyter notebook
You should now be able to click to open the file tutorial.ipynb
, and interact with it!