core icon indicating copy to clipboard operation
core copied to clipboard

[API] Add Advantage to hero matchups

Open moonrobin opened this issue 9 years ago • 1 comments

I'm looking to use the computed Advantage/Wilson score for hero matchups, but it seems like the API only returns games played against, and games won against. I could fetch all matchups, and compute it client side, but that's a lot of excess work I'd rather not do.

As an aside, limiting the hero matchups to only pro games really restricts the sample size. It's also less relevant for the average solo queuer than using public ranked games. What was the reasoning driving this design? If compute is a limit (n squared nature of computing matchup data), perhaps using sample pub games like the /heroes/public page would be better.

moonrobin avatar Nov 23 '17 01:11 moonrobin

Sure, it should be pretty straightforward to port the wilson logic into the API endpoint.

It's mainly a data size issue, querying on the public match data set can be slow (maybe could be improved with TABLESAMPLE). Also we store fewer columns in the public sample to save space, so some queries aren't possible right now (check the schema for the columns)

howardchung avatar Nov 23 '17 01:11 howardchung