GithubHelp home page GithubHelp logo

asgaardlab / dota2-prediction-models Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 438 KB

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

Jupyter Notebook 100.00%
dota2 aritificial-intelligence predictive-modeling python shap xgboost random-forest logistic-regression

dota2-prediction-models's Introduction

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

dota2-prediction-models's People

Contributors

markosviggiato avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.