Code Monkey home page Code Monkey logo

nflrushdb's People

Contributors

albertlyu avatar

Watchers

 avatar  avatar

nflrushdb's Issues

Add testing framework

  • Game
  • Play get positionals
  • Play get positions, play IDs
  • Play get distance between players
  • Positional set adjusted fields

Team abbreviation util

Create a util to handle different team abbreviations across different fields. FieldPosition and PossessionTeam have the same team abbreviations, while VisitorTeamAbbr and HomeTeamAbbr have different team abbreviations from the first two.

Four teams have different abbreviations across the train.csv columns.

FieldPosition and PossessionTeam use:

ARZ, BLT, CLV, HST

VisitorTeamAbbr and HomeTeamAbbr use:

ARI, BAL, CLE, HOU

Source: https://twitter.com/LeeSharpeNFL/status/1182306903558279169

Build out Player class

This is mostly to normalize the player fields, so as to remove them from the positional fields, such as DisplayName, JerseyNumber, PlayerHeight, PlayerWeight, etc. Position is decidedly a positional-level field (presumably). May require additional exploration, because JerseyNumber could change from game to game as well.

Flip coordinates for all positionals based on PlayDirection

Noted by Michael Lopez:

  1. The field coordinates are fixed at each NFL stadia. Often, the first step in any analysis of tracking data is to ensure offensive teams are moving in the same direction. This requires flipping roughly half of a game’s offensive plays from one direction to the other (use the PlayDirection variable, while creating new x and y coordinates, as well as new player orientations and directions. Additionally, standardizing by the play’s line-of-scrimmage may be warranted (particularly when thinking about player space).

Source: https://www.kaggle.com/c/nfl-big-data-bowl-2020/discussion/111918

Derive intraplayer and interplayer positional metrics

Intraplayer:

  • distance from the line of scrimmage
  • horizontal distance from the line of scrimmage (in the X direction, along the long axis of the field)

Interplayer:

  • distance between each player (particularly the running back)
  • closest defender (for each offensive player)

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.