pyAFL icon indicating copy to clipboard operation
pyAFL copied to clipboard

Implement Class to handle tipping data from Squiggle API

Open RamParameswaran opened this issue 5 years ago • 2 comments

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!

RamParameswaran avatar Oct 11 '20 08:10 RamParameswaran

A few quick thoughts:

  1. 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()?
  2. 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.
  3. If you're planning to include historical data, maybe some light caching could help avoid repeat API calls.

kxc663 avatar Apr 17 '25 04:04 kxc663

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! 🙂

RamParameswaran avatar Apr 17 '25 17:04 RamParameswaran