albertlyu / nflrushdb Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Game
Play
get positionalsPlay
get positions, play IDsPlay
get distance between playersPositional
set adjusted fieldsCreate 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
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.
Noted by Michael Lopez:
- 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
To store game-level metrics and plays for that game
etc.
After #2, use the PlayDirection
variable to change the orientation of the player.
Intraplayer:
Interplayer:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.