Tutorial on Modeling Language Change
The data for both the tutorials should be found in the data directory. In addition to the data here, two larger data files can be found at bitbucket: https://bitbucket.org/jacobeisenstein/language-change-tutorial-data
All notebooks are based on Python 3. To ensure that you have all the necessary packages, create a new
conda environment and then activate it (update conda if it asks you to).
pip install --user conda #if necessary conda env create -f environment.yml # create the environment. update conda if it complains. source activate time_tutorial # activate the environment
You can then launch a notebook as follows:
cd ic2s2-notebooks jupyter-notebook HappierOnTheWeekend.ipynb
FollowTheLeader.ipynb notebook requires you to install pyhawkes using
pip install --user pyhawkes autograd (Linux) or
~/miniconda3/envs/time_tutorial/bin/pip install pyhawkes autograd (Mac). If you have trouble, you may want to clone the repo directly here.
To get the additional data files, run:
git clone https://bitbucket.org/jacobeisenstein/language-change-tutorial-data.git
Alternatively, you can run
which will download all the data and setup the symbolic links for you.