Skip to content
fantasy movie league as an allocation problem
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fml
LICENSE
README.md
conf.yml
requirements.txt

README.md

fml

fantasy movie league prediction as an allocation problem:

Maximize expected revenue subject to finite budget

See blog post for more details

Installation

pip install -r requirements.txt

Create a Google Sheet with inputs and outputs tabs. Create related OAuth credentials. Download credentials locally and include their names in conf.yml file.

Running locally

You can either run the optimizer script as

python -m fml.optimizer

or run the Flask app locally

gunicorn fml.app:app

If running the Flask app locally, then replace this line with

 <form action="/" method="post">

Deployment

Make a virtual enviornment (using virtualenv) with any name that is not fml.

Next, use Zappa to initialize and deploy the app.

zappa init
zappa deploy dev
You can’t perform that action at this time.