Skip to content

jackeiel/NFL2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFL Score Predictions

Current Record Against the Spread
97 - 76

Plots found in fig/
Weekly picks found in DATA/Predictions/
Outcomes found in DATA/Results/

For most up to date predictions:

Run

$ pipenv install
$ pipenv shell
$ python

>>> from models.scores import ScorePrediction
>>> guess = ScorePrediction()
>>> guess.get_predictions(home_team='DAL', away_team='NYG')
home_team--away_team--predicted_home_score--predicted_away_score--predicted_spread---model
0-----DAL-------NYG---------26.956206------------17.259805-------------9.696401-------model2

home_team and away_team are team city abbreviations, listed in scores.py and here:

all_teams = ['HOU', 'IND', 'DAL', 'SEA', 'BAL', 'LAC', 'CHI', 'PHI', 'KC', 'LA', 'NE', 'NO', 'APR', 'NPR', 'ARI', 'CAR', 'PIT', 'CIN', 'DET', 'GB', 'DEN', 'CRT', 'IRV', 'MIN', 'WAS', 'RIC', 'TEN', 'ATL', 'BUF', 'JAX', 'AFC', 'NFC', 'OAK', 'MIA', 'NYG', 'CLE', 'SF', 'TB', 'NYJ', 'JAC', 'SD', 'STL']