- Python 2
- The requirements in
requirements.txt
.
- Install the requirements listed in
requirements.txt
. You should be able to do this usingpip install -r requirements.txt
. Note: On some systems, old versions ofgcc
may cause Stan to fail to compile the model. In this case, we recommend theconda
package manager, which installs the required dependencies. To use conda instead of pip, install the requirements usingconda install --file requirements.txt
. - An example of how to run the model can be found in
Example.ipynb
.
The repository contains the following files:
Example.ipynb
, containing an example of how to run the modelbayes_point_model.py
, the python code implementing the modeldataset.csv
, the data used to fit the model (ATP match results from 2011 onwards)requirements.txt
, listing the requirements to install the modelstan_model.stan
, the Stan code to fit the modelwinning_prob.py
, code calculating the iid win probability given serve-winning probabilities, written inpython.