Closed dmaclean closed 10 years ago
Done. Modified calculate_defense_vs_position to handle a metric of “FANTASY_POINTS”. This required extending the model to have a site parameter, since asking for fantasy points doesn’t really work if we don’t know what site’s scoring system we’re using. Also refactored the call in Projections to use the logic in DefenseVsPositionManager (we actually just lifted the SQL query from Projections).
Files modified:
It would be helpful to know what a player's season average is for fantasy points and how many fantasy points an opponent gives up to each position.
Currently, we can fetch average fantasy points from _calculate_scoringstddev, which doesn't make a ton of sense. It was kind of stuffed in there, but adding it to _getbaseline would be a better place.