GithubHelp home page GithubHelp logo

bball's Introduction

Daily pipeline

Model (outdated - new readme to come)

  1. In model.ipynb run the code block containing data_getters.download_gamelog_jsons(2014,'boxscores/2014',start_game=X, end_game=1230) where X is the first game that has not already been downloaded. The program will automatically stop once the last game that is available is downloaded.

  2. Run the next code block, making sure to change latest_day = datetime.date(2014,11,16) into the correct day. All days before and including latest_day will be used to make predictions.

  3. Paste the results of the model model_predictions.csv into the appropriate salary optimization sheet in excel.

Optimization

  1. Export daily player information to CSV and place in first five columns of the appropriate sheet in DK Salary Optimization Sheets.

  2. Copy/paste results from model_predictions.csv into the Model column of the sheet

  3. Make discretionary changes if desired, then click Data -> Solver and solve using the Simplex LP algorithm.

Meta-analysis

  1. Go to DraftKings lobby and save the lobby source code as draftkings scrapes/YYYYMMDD_draftkings_nba_lobby.htm.

  2. Go to the main function in data_getters.py, change the variable fn to the name of the downloaded .htm file, and run, generating a list of all games and their ID's.

  3. Run selenium script on logged in DK account to download the .csv info for each of these games.

bball's People

Contributors

bksim avatar

Stargazers

 avatar Wes avatar

Watchers

James Cloos avatar Youyang Gu avatar  avatar Alex Wang  avatar

Forkers

slawson1986

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.