Code Monkey home page Code Monkey logo

ml-prediction-lol's Introduction

๐Ÿ‘‹ Hi, Iโ€™m Rene Gonzalez

Software Developer, Innovator and CS student @ University of Waterloo.

  • ๐Ÿ”ญ Currently learning more about Machine Learning and Cybersecurity
  • ๐ŸŒฑ Interests: Backend Development, Full Stack Development, Cybersecurity, and Machine Learning
  • ๐Ÿ“ซ Feel free to contact me through my email
  • โšก Fun fact: I love to play the guitar

Languages and Tools:

Typescript

JavaScript

C

C++

Python

PostgreSQL

MongoDB

React

Next

Next

Node.js

Git



Statistics:

Rene's Streak stats

ml-prediction-lol's People

Contributors

dependabot[bot] avatar reneleogp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ml-prediction-lol's Issues

KeyError: 'Renata Glasc'

Well, it is pretty self explanatory, Renata was added to league officially and this program can't handle matches that she exists, heres the full log:

2022-02-20 01:22:46.785 Traceback (most recent call last):
  File "C:\Users\hbnat\AppData\Roaming\Python\Python39\site-packages\streamlit\script_runner.py", line 379, in _run_script
    exec(code, module.__dict__)
  File "C:\Users\hbnat\Desktop\ML-Prediction-LoL-master\src\app.py", line 86, in <module>
    data = get_current_match_prediction(summoner_name, region)
  File "C:\Users\hbnat\Desktop\ML-Prediction-LoL-master\.\src\predict.py", line 127, in get_current_match_prediction
    prediction = predict_match(match, region1)
  File "C:\Users\hbnat\Desktop\ML-Prediction-LoL-master\.\src\predict.py", line 54, in predict_match
    mastery_list = api_calls.get_masteries(summonerName, region)["mastery"]
  File "C:\Users\hbnat\Desktop\ML-Prediction-LoL-master\.\src\api_calls\api_calls.py", line 233, in get_masteries
    championId = int(championIds[data[2]])
KeyError: 'Renata Glasc'

Using just winrate to predict

I saw this project on reddit, and I think its really great, the data scraping is really good, and we get a nice data set to work with.

However, I think the winrate is doing most of the work here. I threw together a quick test with GBOOST with just using the mean win rates, and I get a 87.91% accuracy by training from the LAN data set, and testing with the NA dataset. If I only used the Winrates Avg, I get 88.20% accuracy on the data set. I did not use k-fold splitting.

Removing any winrate data dropped the accuracy on the NA dataset to 58.67%.

So either champ winrate is all you really need to predict the outcome of a match, or something about winrate data is actually encoding the match outcome, and the GBOOST is learning that instead.

I've attached the test file so you can verify yourself
LoL Winrate Test.zip

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.