Try to predict the outcome of NFL games using historical data
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
functions
models
.gitignore
README.md
db.php
init.php
objects.php
run-model.php
setup.php

README.md

Pick 'em

Try to predict the outcome of NFL games using historical data

Setup

Create a database called and put its credentials in db.php. Then run php setup.php to create the database table and populate it with historical data. The same command can also be used to update new data.

Models

Models live in the /models directory and can be invoked on the command like. For example, php run-model.php model-slug would run a model in /models/model-slug.php. Each model must define a pickem_model() function that accepts a $season (year), $week (integer) and $teams (array of team names). pickem_model() should return a team name (string) to be compared against the actual winner of the game.