Coder Social home page Coder Social logo

romanlutz / nflplayprediction Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 10.0 8.48 MB

Based on NFL game data, we want to predict the success of a play. This can be used to insert different strategies before the play is called to determine the success probability.

Python 1.15% OpenEdge ABL 98.85%
football machine-learning national-football-league nfl prediction sports-science sportsanalytics

nflplayprediction's People

Contributors

romanlutz avatar valentin012 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nflplayprediction's Issues

Feature extraction matching issue

When using extract_features(2013, 2014) I ran into the following error: (it won't happen for 2014, 2014!)

"NFLPlayPrediction/features.py", line 118, in extract_features
match = rematch.group(0)
AttributeError: 'NoneType' object has no attribute 'group'

I'm not really sure why it happens, but I'll look into it. Please do the same if you can!

Feature Extraction: filtering errors

I just discovered possible filtering errors. When using the DictVectorizer to convert categorical features (e.g. opponent=DEN) to numbers (using one-hot encoding this could result in 32 binary features indicating whether the opponent is a certain team or not), the following were shown as values of certain features: (I'll mark the correct ones)
35: u'passlen=deep', <--- correct
36: u'passlen=intended',
37: u'passlen=left',
38: u'passlen=right',
39: u'passlen=short', <--- correct
...
43: u'side=41',
44: u'side=48',
45: u'side=EJ',
46: u'side=QB',
47: u'side=for',
48: u'side=kicks',
49: u'side=kneels,',
50: u'side=left', <--- correct
51: 'side=middle', <--- correct, but somehow not u'side?
52: u'side=right' <--- correct
53: u'side=sacked',
54: u'side=snap',
55: u'side=the',
56: u'side=to'

There's no immediate hurry to fix this, but please take a look at it whenever possible. I'll look into it as well.

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.