Skip to content

Repository with code for building, evaluating and explaining Dota 2 prediction models for team victory. Submitted to the artifact evaluation track of the 16th AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment - AIIDE 2020

Notifications You must be signed in to change notification settings

asgaardlab/dota2-prediction-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Instructions on how to build, evaluate and explain victory prediction models for Dota 2

Dota 2 game

This notebook contains general instructions on how to run the scripts to build, evaluate, and explain prediction models for team victory in the Dota 2 game.





For more details on how we collected the data and extracted the model features, please check our Dota 2 paper accepted at the 16th AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment (AIIDE 2020):
Dota 2 paper

The used dataset is available in the following zenodo repository:
Dota 2 dataset


Dependencies

The following dependencies are required to run the scripts on your local machine (you do not need to locally install them if you are running the scripts on cloud services like Google Colab):

Structure of directories

The following directories contains the scripts to build the prediction models.

  • prediction-models: contains the scripts to read the model features, build and evaluate prediction models using three algorithms: XGBoost, Random Forest, and Logistic Regression. Note that, for each algorithm, there are 3 different scripts, one for each data group we adopted in our study: regular matches, time blowout matches, and score blowout matches.

  • prediction-models-explanation-SHAP: contains the scripts to apply the SHAP values technique to explain victory predictions for Dota 2 matches.

Dataset

In order to run the scripts within the prediction-models and the prediction-models-explanation-SHAP directories, you will need to first download the dataset (model features), which is available here.

The features are available in the model_pre_match_features.zip file. Please download this zip file and extract its contents.

If you desire to run the scripts on Google Colab, you will need to upload all the three feature files to your Google Colab session (the detailed instructions on how to upload the files are in the prediction-models and prediction-models-explanation-SHAP directories).

Running the scripts

For detailed instructions on how to the scripts, please look at the prediction-models and the prediction-models-explanation-SHAP directories, as they contain the necessary information regarding the scripts.

Be aware that the scripts in the prediction-models directory (to build and evaluate the predicion models) and in the prediction-models-explanation-SHAP directory (to build and explain the XGBoost model) should be run in Google Colab by default. The few changes necessary to run the scripts on a local machine are explained in the specific notebooks with the instructions.

General Questions

If you have any question or suggestion, please contact the repository owner at markosviggiato[at]gmail.com

About

Repository with code for building, evaluating and explaining Dota 2 prediction models for team victory. Submitted to the artifact evaluation track of the 16th AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment - AIIDE 2020

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published