fantasy movie league prediction as an allocation problem:
Maximize expected revenue subject to finite budget
See blog post for more details
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.
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">
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