Pringleman83 / SportsBook

A sports data scraping and analysis tool
GNU General Public License v3.0
82 stars 38 forks source link

Prediction system overhaul #32

Closed Pringleman83 closed 5 years ago

Pringleman83 commented 6 years ago
  1. Set up a new prediction list standard (for storing predictions): [["Prediction name","Game Date", "Time", "Home Team", "Home Team Score", "Away Team", "Away Team Score", "Prediction Algorithm", "Data associated with this prediction"]]

  2. Set up a list of prediction algorithms: ["Prediction name", "Prediction algorithm"]

  3. Ask the user what algorithm to use when running predictions:

    • List the available algorithms
    • Offer the option to run all agorithms on each game
Pringleman83 commented 5 years ago

Step 1 has been done, but still needs tweaking. It's currently a list of dictionaries (perfect!) but the dictionary for each game also has post game analysis keys which aren't required for predictions. They are present for the spreadsheet, but can be added during spreadsheet creation. I'll come back and resolve that part soon.

Pringleman83 commented 5 years ago

Step 1 is now done. The post game analysis keys are no longer included and are instead added to the spreadsheet dataframe.

A method of selecting appropriate functions is needed. A simple list may not suffice though as each prediction is likely to be a function itself and may also require different data.

The idea is still a work in progress.

Pringleman83 commented 5 years ago

The latest pull includes an option for selecting the algorithm used. It doesn't require a list of algorithms. It's just a simple menu that calls the relevant function based on the prediction method chosen.

This will most likely need improving at some stage, but I'm happy to close the issue for now as the vision I had in mind is achieved.