Git Product home page Git Product logo

fantasyfootball's Introduction

Files included, in chronological order:

DATA RETRIEVAL

Play-by-Play data
nfl_pbp_game.py — retrieves data from NFL API
pbp_data_download.png — screenshot of retrieval of API data

Weather data
scrapeWeatherData.R - retrieves weather data from internet

Injury data
nfl_injury_extact.py - retrieves injury data from internet

FanDuel data
salarylist.csv - downloaded from FanDuel.com


DATA PROFILING

Play-by-Play data
pbp_profile_map.py - map class for profiling, uses data from API
pbp_profile_reduce.py - reduce class for profiling
pbp_profile_log.txt - logs from running map and reduce on API data

Weather data
ProfileDriver.java - MapReduce driver, uses data scraped by ‘scrapeWeatherData.r’
ProfileMapper.java - Mapper class
ProfileReducer.java - Reducer class
Data_Profile_Screenshot_1.png and Data_Profile_Screenshot_2.png - screenshots of the above

Injury data
NFL_Injury.java - MapReduce driver, uses data scraped by ‘nfl_injury_extact.py’
NFL_Injury_Mapper - Mapper class
NFL_Injury_Reducer - Reducer class
Profiling1.png, Profiling3.png, Profiling5.png - screenshots of the above

FanDuel data
ProfileData.java - MapReduce driver, uses ‘salarylist.csv’ as input
ProfileMapper.java - Mapper class
ProfileReducer.java - Reducer class
output.txt - the output of the profiling code above


DATA CLEANING AND MERGING

Play-by-Play data
impala_clean_merge.txt - cleans play by play and merges with weather, injury data. Takes as input the API data and cleaned data from weather and injury datasets.
pbp_clean_merge.png - screenshot of the cleaning and merging process

Weather data
NFLDriver.java - MapReduce driver, uses output of ’scrapeWeather.r’ as input
NFLMapper.java - Mapper class
NFLReducer.java - Reducer class
Data_Cleaning_Screenshot_1.png and Data_Cleaning_Screenshot_2.png - screenshots of the above

Injury data
Cleaning_Data.txt - Hive code for data cleaning

FanDuel data
newDriver.java - MapReduce driver, uses ‘salarylist.csv’ as input
newMapper.java - Mapper class
newReducer.java - Reducer class
cleaning_screenshot.png - screenshot of the above


ANALYTIC

Point prediction
rdd_regression4.1.py - takes as input the output of ‘impala_clean_merge.py’ and returns predicted point values for each player
score_prediction.png - screenshot of ‘rdd_regression4.1.py’ running
scores.txt — output from ‘rdd_regression4.1.py’
readPreds.java - takes ‘scores.txt’ as input, along with salary data and the list of eligible for a particular contest and returns input for the team selection model as well as ‘scores.txt’ reformatted to a .csv
Position.java and Player.java are Object classes upon which ‘readPreds.java’ relies
playerlist.csv - output from ‘readPreds.java’, input to team selection model
goodnessinput.csv - output from ‘readPreds.java’, used offline for goodness-of-fit tests in R

Team selection
Team_Selection.py - takes ‘playlist.csv’ as input and prints the chosen team
Team_Selection_Model.jpg - a screenshot of the above running and the output it produced 

Goodness testing
goodnesstesting.R - takes in our predictions and the actual scores from a given week and displays various statistics about the goodness of fit
goodnessinput.csv - the output of the prediction model reformatted to a .csv, input to ‘goodness testing.R’
week14.csv - the actual scores for players last week

fantasyfootball's People

Contributors

harshtrivedi134 avatar

Watchers

James Cloos avatar

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.