pyAFL
pyAFL copied to clipboard
Implement Class to handle tipping data from Squiggle API
Description of feature/enhancement
- The Squiggle API offers public access to raw data about AFL games and predictions made by popular online models.
- It can be useful to compare the historical performance of some well-known tipping engines, and for a user to baseline their own tipping engines
Description of implementation
- This implementation should draw from the corresponding implementation in the fitzRoy "R" package https://jimmyday12.github.io/fitzRoy/articles/mens-stats.html
- The data should be returned as Pandas Dataframes with format compatible with the dataframes from other pyAFL model Classes
Additional context
- consider usage cases for querying tips. Would they be queried by individual rounds/games/seasons/teams?
- I'm open to suggestions on what other classmethods should be implemented!
A few quick thoughts:
- Being able to query tips by round, season, team, or game would be super handy. Maybe some helper methods like get_tips_by_round() or get_tips_by_team()?
- It might also be fun to have a quick way to compare Squiggle model tips with user-submitted ones — kind of like a benchmark tool.
- If you're planning to include historical data, maybe some light caching could help avoid repeat API calls.
Thanks @kxc663. Points 1 and 2 both sound great. Point 1 is straightforward (I think). I'd love if you could elaborate on point 2.
This issue is up for grabs, if you'd like to contribute! 🙂