No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

API Challenge 2.0

AP Champions: Mains vs Non-Mains


Has the patch 5.13, the patch where AP items received huge changes, impact the player base a lot? There are numbers we can direct ourselves to, such as KDA and win rates, and the biggest of all, item popularity. There are other more subtle behavioral changes that we can look at. In particular, we want to know if champion mains react differently to the patch compared to the average citizen. Moreover, it is interesting to learn if champion mains emerged or disappeared because of the patch. In this project we will look at these statistics, using direct observation, principle component analysis (PCA), and neural networks.

#Quick-Start Load mainpage.html in a web brower. Specifically, you can open This provides all the interface and information needed to understand this project from the user-end. For detailed discussion of the analysis, go to the "Methods" in the webpage.

Note on items: We only present items relevant to AP item users in our item statistics. All smites are listed as blue smites. Only highest tier AP items, Trinity Force, and defensive items are displayed. Trinity Force usage would indicate champions that could be choose between an AD or AP build path. Since further discussion on AD builds would digress from our theme, items such as Blade of the Ruined King shall remain hidden. By the same token, support items would also be left out.

#Data Usage Initial match data were taken from the API using the original downloadable match list provided on the contest page. All regions were used, while only ranked games were analyzed as an attempt to reduce randomness in plays by only considering more serious players. In addition match list data is used for identified champion mains to train our neural network. For the sake of conciseness only analysis from heavy AP item users and AP items were presented.

#Short Description of Scripts:

Order of important scripts being run: > > readMatches.js > > postPcaProcessing.bat > readPickDrop.bat > filterPickDrop.bat > pickdrop_neural.m > >

Important scripts:

  • downloads API data from server

  • re-download data that received error codes

  • readMatches.js: convert downloaded data into statistics

  • principle component analysis on compiled data

  • postPcaProcessing.bat: reads in to convert PCA statistics into a presentable format

  • readPickDrop.bat: reads in to get number of plays for each champion from raw data

  • filterPickDrop.bat: reads in to filter out games not played on patches 5.10-5.16

  • pickdrop_neural.m: creates data structure compatible to Matlab neural network app. Run the app to obtain neural network.

  • use critera determined by our neural network to differentiate picking and dropping champions

  • to be run after main.html (the template page) is edited. Generates all champion pages automatically.

Python libraries:

  • classes.pyc: classes used to structure statistics to be read from the API

  • download.pyc: functions for building URL names and downloading data from the API

  • processing.pyc: function for extracting important statistics from downloaded data