View Full Version : Blue Alliance API OPR
FlamingSpork
28-04-2016, 16:38
Does the Blue Alliance API provide teams' OPR values, or will I need to calculate them myself?
Thanks!
connor.worley
28-04-2016, 16:39
It appears to be provided. See event stats (https://www.thebluealliance.com/apidocs).
plnyyanks
28-04-2016, 16:39
It's all there for you!
Take a look at the "Event Stats Request" section of http://www.thebluealliance.com/apidocs
Eric Scheuing
28-04-2016, 16:50
It appears to be a little funky on Archimedes at least. Earlier it was listing my team's OPR as 115.something.
efoote868
28-04-2016, 16:59
It appears to be a little funky on Archimedes at least. Earlier it was listing my team's OPR as 115.something.
You generally need to play at least 6 matches before OPR has any meaning. Before then it is a garbage value.
FlamingSpork
28-04-2016, 17:10
It's all there for you!
Thanks! I should have looked harder.
You generally need to play at least 6 matches before OPR has any meaning. Before then it is a garbage value.
Not a bad rule of thumb, but it depends on the size of the event. With larger events, each team needs to play more matches before getting the same level of accuracy.
You generally need to play at least 6 matches before OPR has any meaning. Before then it is a garbage value.
Not a bad rule of thumb, but it depends on the size of the event. With larger events, each team needs to play more matches before getting the same level of accuracy.
http://www.chiefdelphi.com/forums/showpost.php?p=1574203&postcount=21
efoote868
28-04-2016, 22:07
http://www.chiefdelphi.com/forums/showpost.php?p=1574203&postcount=21
On each of those pretty graphs, where would you estimate the point OPR stabilized? I'd eyeball around 5-6 matches per team, although some sort bound on the delta opr / match might give a more accurate answer. Maybe it is stable once all OPRs don't change more than 2-5% after a match?
Since each match generates 2 OPR equations (one for red alliance and one for blue alliance), you need at least T/2 matches to be played (where T is the number of teams) to get an overdetermined system of equations. As you can see from the graphs, it takes a bit more than T/2 to settle down.
But... did you look at the rest of that thread? Eugene Fang came up with a clever idea for getting around this limitation so that a stable OPR can be introduced right at the start of the event... and as matches are played the new data is used to refine the OPR. That new algorithm is used for the match predictions at the TBA site.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.