/lineup-performance

Primary LanguagePythonMIT LicenseMIT

lineup-performance

Using network embedding techniques, we aim to provide methodology to predict the performance of different lineups.

Setup

  1. Extract the lineup data from link here

  2. Add the path to the data you extracted to the lineup/data/constant.py file.

import os
if os.environ['HOME'] == '/home/neil':
    data_dir = '/home/neil/projects/lineup-performance/lineup'
    # insert data path as branch of if statement
else:
    raise Exception("Unspecified data_dir, unknown environment")
  1. Install the packages required from the repo dir.
python setup.py build
python setup.py install

Data Setup

  1. In the lineup/data/nba config, execute these scripts.
python get_on_court.py
python get_lineups.py
python get_matchups.py
python get_abilities.py