player-embedding-ice-hockey

My code is based on python 2. Check requirements.txt for a detail introduction to the python packages. I recommend python virtual environment for building this project.

Pre-Processing data

This work applies the play-by-play data from Sportlogiq. Please find a detail description of this data from my thesis (published soon). Run run_preprocess.py which include game history into training data.
To run this code, please prepare you own dataset.

Model Training

In the following training file should specify:

  1. source_data_dir # you source data (before pre-preprocessing)
  2. data_store_dir # your training data (after pre-preprocessing)

VaRLEA Training

CVRNN Training

The model parameters are recorded in here.

Model Testing

Player Identification

run validate_player_id