Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting (http://www.chiefdelphi.com/forums/showthread.php?t=75272)

Bongle 03-03-2012 12:41

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by Ether (Post 1138023)
Actually, I wasn't looking for the OPR, or the parsed match data. I was looking for the raw match data. Could you post a link to where you're getting that raw data from?



I just use the official FIRST match results.

frclinks.com gives you links to most of them.

Example: The Alamo results are here: http://www2.usfirst.org/2012comp/Events/stx/matchresults.html (stx is the short code for the regional). You can get different results by substituting different regional codes and years.

stundt1 04-03-2012 20:56

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Is there a way to grab the data from all of the events?

ThirteenOfTwo 05-03-2012 02:03

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
It strikes me that OPR might undervalue teams who exclusively pursue the Coopertition Bridge in qualification rounds, since that doesn't add to their score. Have you considered accounting for that, perhaps by adding twenty points to the score of any alliance that receives full coopertition points?

Bongle 05-03-2012 07:16

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by ThirteenOfTwo (Post 1139256)
It strikes me that OPR might undervalue teams who exclusively pursue the Coopertition Bridge in qualification rounds, since that doesn't add to their score. Have you considered accounting for that, perhaps by adding twenty points to the score of any alliance that receives full coopertition points?

It would undervalue them for sure. Unfortunately, I don't actually have a way to determine which alliance earned coopertition points, since it's not in the full results and I don't have the time to implement a twitter parser.

Another thing it is semi-missing is foul points - in previous years, a team that tended to take penalties would end up with a negative OPR. But this year, since those penalties actually add points to your opponents, a penalty-heavy team might still have an apparently-high OPR. Or, if you are a team that tends to get fouled, you might have an elevated OPR despite never scoring a basket.

Here's all the OPRs for this week. The number on the left is that robot's rank at its regional.
Code:

0        OPR        341        32.8125
0        OPR        1986        26.2784
0        OPR        118        25.6594
1        OPR        1218        23.6265
1        OPR        16        22.9855
0        OPR        716        22.902
2        OPR        3528        22.6023
1        OPR        1477        22.3017
2        OPR        148        21.2954
0        OPR        3322        19.4138
3        OPR        488        18.699
3        OPR        1208        18.1549
1        OPR        58        17.088
2        OPR        131        16.7107
4        OPR        1730        16.511
0        OPR        3476        16.4207
2        OPR        486        16.3144
4        OPR        2468        16.3067
5        OPR        935        15.5293
3        OPR        885        15.4566
6        OPR        967        15.3269
0        OPR        234        15.0478
0        OPR        1918        14.9358
1        OPR        85        14.5958
7        OPR        1982        14.363
8        OPR        1987        14.3531
1        OPR        2496        14.3036
1        OPR        2751        14.2611
5        OPR        231        14.1442
4        OPR        319        14.0779
5        OPR        3467        13.725
6        OPR        2848        13.6591
9        OPR        1997        13.5443
2        OPR        2386        13.5017
3        OPR        772        13.4929
1        OPR        51        13.4107
4        OPR        2393        13.247
3        OPR        357        13.1717
6        OPR        3597        13.0425
2        OPR        1538        12.8677
5        OPR        4092        12.6507
10        OPR        3284        12.2517
7        OPR        126        12.1894
3        OPR        2485        12.1408
11        OPR        525        12.0171
2        OPR        33        11.9848
4        OPR        1726        11.9493
12        OPR        1108        11.8475
13        OPR        2345        11.8347
8        OPR        95        11.7941
14        OPR        1802        11.6632
9        OPR        175        11.3817
2        OPR        123        11.1897
5        OPR        2543        11.0539
6        OPR        538        10.9521
7        OPR        1501        10.915
3        OPR        3546        10.8166
3        OPR        1504        10.7889
6        OPR        1138        10.7744
10        OPR        811        10.5492
4        OPR        1647        10.3195
11        OPR        134        10.2537
12        OPR        3323        10.2166
13        OPR        2342        10.1822
4        OPR        862        10.131
15        OPR        1806        10.1184
7        OPR        3035        10.0895
7        OPR        1661        10.0641
8        OPR        399        9.98838
9        OPR        3328        9.98757
5        OPR        2016        9.9551
8        OPR        3103        9.88195
16        OPR        2949        9.75011
14        OPR        157        9.69735
10        OPR        1266        9.60731
11        OPR        3965        9.54659
15        OPR        3609        9.45004
8        OPR        337        9.36572
17        OPR        1985        9.10772
16        OPR        61        9.10239
18        OPR        3507        9.0431
9        OPR        447        9.03065
17        OPR        1493        9.00103
12        OPR        4161        8.93611
4        OPR        2246        8.92978
5        OPR        1684        8.91294
13        OPR        2984        8.8993
6        OPR        225        8.88361
9        OPR        3545        8.79667
19        OPR        1775        8.78996
10        OPR        704        8.76618
18        OPR        2791        8.74593
6        OPR        2337        8.68728
20        OPR        1825        8.67203
7        OPR        70        8.33683
14        OPR        3453        8.27547
7        OPR        87        8.26135
8        OPR        3568        8.25133
21        OPR        1984        8.24363
5        OPR        3618        8.22496
22        OPR        2996        8.2217
8        OPR        714        8.14243
15        OPR        4276        8.11717
9        OPR        2590        8.08921
9        OPR        1506        8.04759
16        OPR        3647        8.03452
17        OPR        4056        7.94523
10        OPR        834        7.79931
11        OPR        1923        7.77921
10        OPR        2137        7.67652
18        OPR        2827        7.55455
11        OPR        314        7.53413
23        OPR        2395        7.49949
11        OPR        3478        7.43161
19        OPR        1073        7.41635
12        OPR        4342        7.33981
10        OPR        1261        7.33809
6        OPR        2000        7.23826
12        OPR        3582        7.2377
7        OPR        4362        7.08925
13        OPR        1640        7.04481
11        OPR        547        6.94494
24        OPR        2346        6.81529
20        OPR        1519        6.7423
19        OPR        1372        6.74147
14        OPR        1143        6.66163
25        OPR        1723        6.5577
15        OPR        4373        6.55164
12        OPR        3302        6.52255
12        OPR        4098        6.45841
13        OPR        3415        6.39837
13        OPR        2721        6.39155
13        OPR        292        6.33222
14        OPR        2283        6.33006
26        OPR        2357        6.30804
21        OPR        78        6.29179
22        OPR        166        6.25887
15        OPR        245        6.25599
27        OPR        3798        6.24511
20        OPR        2029        6.08383
21        OPR        4014        6.04743
14        OPR        4265        6.01163
22        OPR        702        6.00616
16        OPR        3743        5.90888
15        OPR        451        5.81798
8        OPR        2959        5.75464
9        OPR        4237        5.74805
10        OPR        3656        5.74522
11        OPR        904        5.61683
23        OPR        1247        5.60367
16        OPR        1811        5.41299
17        OPR        709        5.38007
18        OPR        1391        5.36037
24        OPR        213        5.30229
23        OPR        3255        5.30163
12        OPR        247        5.2979
13        OPR        4375        5.29578
28        OPR        2167        5.22451
24        OPR        4322        5.20897
25        OPR        4160        5.17384
26        OPR        4139        5.15424
19        OPR        1712        5.14555
29        OPR        4208        5.10633
16        OPR        3516        5.08752
27        OPR        3341        5.0114
14        OPR        1322        4.98369
25        OPR        238        4.93879
30        OPR        2457        4.92861
17        OPR        3843        4.90281
18        OPR        3984        4.87914
26        OPR        1831        4.8529
28        OPR        3226        4.82304
29        OPR        1622        4.77857
31        OPR        1764        4.7483
17        OPR        3552        4.69901
30        OPR        2102        4.67774
14        OPR        2767        4.67592
27        OPR        138        4.65928
20        OPR        2607        4.61024
32        OPR        3784        4.5993
15        OPR        4409        4.57113
19        OPR        1038        4.5209
28        OPR        133        4.51385
33        OPR        3973        4.45533
20        OPR        3675        4.41823
18        OPR        2936        4.38089
21        OPR        2229        4.3218
16        OPR        4327        4.28979
34        OPR        1769        4.27853
19        OPR        1817        4.26613
21        OPR        3844        4.26344
17        OPR        3452        4.24254
35        OPR        1737        4.19178
36        OPR        662        4.14502
37        OPR        2001        4.07234
38        OPR        1777        4.02699
20        OPR        3335        4.01941
29        OPR        1058        3.90721
21        OPR        2952        3.85609
22        OPR        3370        3.8319
23        OPR        3696        3.82853
18        OPR        1677        3.78573
19        OPR        1940        3.76324
24        OPR        4219        3.74796
30        OPR        501        3.72605
15        OPR        4376        3.7115
25        OPR        3028        3.70648
39        OPR        1094        3.68128
22        OPR        1249        3.64641
22        OPR        708        3.64145
23        OPR        2190        3.58935
31        OPR        1160        3.58679
23        OPR        4285        3.57779
16        OPR        494        3.56116
32        OPR        3008        3.52971
24        OPR        3140        3.49907
25        OPR        2856        3.47522
33        OPR        599        3.43749
26        OPR        2583        3.43391
31        OPR        1729        3.39535
27        OPR        3481        3.38129
17        OPR        1243        3.37743
18        OPR        302        3.36519
32        OPR        1512        3.36242
40        OPR        2874        3.3329
34        OPR        2599        3.29634
41        OPR        1448        3.22393
28        OPR        4332        3.21996
19        OPR        3537        3.16299
29        OPR        4063        3.15461
42        OPR        1847        3.15327
33        OPR        1824        3.1522
35        OPR        1572        3.13967
30        OPR        3325        3.10001
20        OPR        4408        3.08841
24        OPR        1168        3.04883
31        OPR        2833        2.92705
20        OPR        3534        2.88559
21        OPR        4398        2.85018
25        OPR        224        2.83951
36        OPR        3470        2.83926
43        OPR        938        2.82786
44        OPR        931        2.80833
21        OPR        1711        2.75234
22        OPR        4294        2.73222
26        OPR        2973        2.70523
26        OPR        3167        2.6859
27        OPR        3861        2.67374
22        OPR        3509        2.61858
28        OPR        1319        2.61674
45        OPR        1782        2.61639
46        OPR        2335        2.58183
27        OPR        2539        2.56513
37        OPR        3486        2.5247
28        OPR        869        2.50808
23        OPR        3601        2.46826
32        OPR        2985        2.42244
29        OPR        272        2.41714
30        OPR        1791        2.35183
38        OPR        3491        2.34163
23        OPR        1254        2.33288
39        OPR        2493        2.30368
33        OPR        3240        2.2469
31        OPR        293        2.18618
34        OPR        2789        2.13613
24        OPR        3536        2.08899
29        OPR        3856        2.0842
35        OPR        457        2.06238
34        OPR        1922        2.03924
47        OPR        3931        2.03851
36        OPR        3080        2.00541
48        OPR        1763        1.9889
35        OPR        1517        1.97575
36        OPR        4403        1.91872
24        OPR        2771        1.91226
40        OPR        4117        1.87589
30        OPR        2200        1.8717
25        OPR        4004        1.85159
41        OPR        2658        1.77461
49        OPR        2353        1.73731
37        OPR        1721        1.72587
37        OPR        3497        1.69755
26        OPR        3875        1.67222
38        OPR        3614        1.64624
25        OPR        1502        1.61057
26        OPR        894        1.60018
32        OPR        3123        1.58136
31        OPR        3116        1.5811
27        OPR        1528        1.57364
32        OPR        3824        1.56656
39        OPR        3834        1.56235
40        OPR        2461        1.54809
41        OPR        3999        1.44144
33        OPR        4020        1.42279
38        OPR        1307        1.39332
34        OPR        3227        1.38727
50        OPR        2004        1.32357
27        OPR        326        1.24579
28        OPR        3769        1.22155
39        OPR        3451        1.13336
29        OPR        322        1.09004
28        OPR        4377        1.01903
30        OPR        2604        0.98915
42        OPR        3021        0.982355
40        OPR        1289        0.909371
42        OPR        922        0.883356
35        OPR        2817        0.874394
43        OPR        2080        0.827922
36        OPR        3259        0.82676
44        OPR        653        0.808071
41        OPR        20        0.774002
43        OPR        2193        0.685041
44        OPR        3480        0.672862
45        OPR        691        0.649904
37        OPR        4025        0.647571
38        OPR        462        0.620802
29        OPR        4368        0.603022
51        OPR        3485        0.496661
39        OPR        4396        0.480684
31        OPR        703        0.472759
46        OPR        2839        0.417431
33        OPR        2600        0.411199
45        OPR        2969        0.390075
46        OPR        3353        0.375291
40        OPR        442        0.370534
47        OPR        4114        0.26188
48        OPR        1836        0.254138
41        OPR        4264        0.226234
42        OPR        3783        0.213931
52        OPR        937        0.208111
49        OPR        812        0.206054
47        OPR        3345        0.1956
42        OPR        1277        0.19379
48        OPR        2982        0.157963
34        OPR        4361        0.132835
30        OPR        4325        0.11449
43        OPR        3972        0.104074
53        OPR        1994        0.0929351
43        OPR        3585        0.070779
49        OPR        3700        -0.0139002
44        OPR        1466        -0.028104
31        OPR        4381        -0.0290566
50        OPR        3561        -0.0478725
54        OPR        1652        -0.0664144
50        OPR        2339        -0.076633
55        OPR        1810        -0.102099
32        OPR        3421        -0.118807
51        OPR        2787        -0.139598
33        OPR        468        -0.188401
34        OPR        1701        -0.189623
45        OPR        4245        -0.26317
35        OPR        1495        -0.424958
52        OPR        2966        -0.492256
35        OPR        4382        -0.495867
53        OPR        3943        -0.504787
54        OPR        2158        -0.552328
51        OPR        3967        -0.560277
55        OPR        4162        -0.576627
46        OPR        3966        -0.578922
56        OPR        1939        -0.59877
56        OPR        3029        -0.653681
36        OPR        2627        -0.670392
52        OPR        3849        -0.678526
53        OPR        3128        -0.784786
44        OPR        172        -1.13535
45        OPR        151        -1.15067
37        OPR        2611        -1.16379
47        OPR        4306        -1.25258
46        OPR        509        -1.26891
48        OPR        3821        -1.30548
49        OPR        2783        -1.3294
32        OPR        2405        -1.35365
54        OPR        3749        -1.39238
38        OPR        3535        -1.42261
47        OPR        1547        -1.59178
33        OPR        4389        -1.63187
57        OPR        3764        -1.70863
34        OPR        3767        -1.8307
50        OPR        3961        -2.01502
36        OPR        3607        -2.18351
51        OPR        415        -2.2332
58        OPR        1827        -2.29193
55        OPR        3704        -2.32525
57        OPR        2745        -2.36626
37        OPR        2234        -2.40579
58        OPR        499        -2.49012
59        OPR        3366        -2.56216
59        OPR        2410        -2.63983
60        OPR        2164        -2.70082
52        OPR        3797        -3.00048
61        OPR        2972        -3.18454
48        OPR        4034        -3.22404
60        OPR        3417        -3.33697
62        OPR        2560        -3.74052
61        OPR        4000        -3.89845
63        OPR        1785        -3.93474
35        OPR        3658        -4.84805
53        OPR        2483        -4.91803
62        OPR        4282        -4.98026
49        OPR        1153        -5.04162


Chris Hibner 05-03-2012 07:53

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by Bongle (Post 1139301)
It would undervalue them for sure. Unfortunately, I don't actually have a way to determine which alliance earned coopertition points, since it's not in the full results and I don't have the time to implement a twitter parser.

We went for the coopertition bridge every match, usually with at least 45 seconds left in the match. I'm sure that hurts our OPR, but anyway...

You also don't have a way to determine which robots scored the points in each match, which is why we use OPR. You can use the OPR algorithm on coopertition points to get a "coopertition OPR" that should in theory determine which robots are doing the coopertition bridge balancing.

Bongle 05-03-2012 08:18

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by Chris Hibner (Post 1139310)
You also don't have a way to determine which robots scored the points in each match, which is why we use OPR. You can use the OPR algorithm on coopertition points to get a "coopertition OPR" that should in theory determine which robots are doing the coopertition bridge balancing.

The problem is that for every match, I at least get a (foul + baskets + bridge) score for each alliance, which is then used to determine OPR. I don't, however, get a coopertition score for each alliance every match, so you can't apply the same regression math to try and tease out which teams actually earned the coopertition bridge points. With the data actually available in the FRC results, the best you can do is divide each team's CP total by their # of matches played, and hope that correlates with the teams that are actually cooperteting.

If I could parse the twitter feed or if it was available at a more convenient place than twitter (anyone know a link?), then I'd be able to break out fun things like Bridge Power Ratings, Hybrid Ratings, Basket Power Ratings, Foul Ratings, and Coopertition ratings, which would probably help a prospective picking team pick out complementary teams. Come to think of it, that would be useful enough to be worth trying to do.

Chris Hibner 05-03-2012 08:23

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by Bongle (Post 1139316)
The problem is that for every match, I at least get a (foul + baskets + bridge) score for each alliance, which is then used to determine OPR. I don't, however, get a coopertition score for each alliance, so you can't apply the same regression math to try and tease out which teams actually earned the coopertition bridge points. With the data actually available in the FRC results, the best you can do is divide each team's CP total by their # of matches played, and hope that correlates with the teams that are actually cooperteting.

If I could parse the twitter feed or if it was available at a more convenient place than twitter (anyone know a link?), then I'd be able to break out fun things like Bridge Power Ratings, Hybrid Ratings, Basket Power Ratings, Foul Ratings, and Coopertition ratings.

Ahhh, for some reason I thought they were giving the coopertition bonus in the results. I was competing this week so I haven't seen what the web results look like this year.

PerpetualMotion 05-03-2012 08:51

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by Bongle (Post 1139316)
I don't, however, get a coopertition score for each alliance every match, so you can't apply the same regression math to try and tease out which teams actually earned the coopertition bridge points.

If you're using an n x n+1 matrix where the n+1 column is the sum of points, can you not use the sum on the standings page under the CP column?

For example

http://www2.usfirst.org/2012comp/Eve.../rankings.html

By this theory, you could also do separate "OPR's" for Hybrid Points, Bridge Points, Teleop Points, and Coop Points. That would be interesting to see.

IKE 05-03-2012 08:54

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
If you really want to, you can pull the standings, and take the CP points/possible CPs * Bridge Points. I think one could make a reasonable argument that each teams contribution towards teh Co-Op bridge should be worth 10 points if successful. Thus for Kettering, looking at the top 2 rankings, you could argue that 2337 deserves a 14CP/(2CP*12matches)*10 points or... 5.8 point bonus. 51 would get 10CP/(2CP*12matches)*10 or 4.17 bonus. You would need to do that in relation to all teams to get a full understanding, and even then it only tells a partial story.

OPR will be an interesting metric this year. While not as low a value as it was in 2009, I expect it will not be as strong a predictor as it was in 2008 or 2010. Smart teams will be looking at what is seeding high, and what is winning, and thus what are good predictors.
Further discussion should probably be in an outside thread so as not to thread-jack Bongle any further than I have.

Thank you Bongle for posting the OPRs.

Bongle 05-03-2012 09:22

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by PerpetualMotion (Post 1139330)
If you're using an n x n+1 matrix where the n+1 column is the sum of points, can you not use the sum on the standings page under the CP column?

For example

http://www2.usfirst.org/2012comp/Eve.../rankings.html

By this theory, you could also do separate "OPR's" for Hybrid Points, Bridge Points, Teleop Points, and Coop Points. That would be interesting to see.

Yeah, I thought of that after I posted :). In fact, I was completely wrong in my previous post - all you need to do an OPR-style calc is the sum of the points scored and what alliance partners that team throughout the regional, so the standings page will in fact be able to give us all the things we want wrt bridge/basket/foul/coopertition points. The individual match scores are actually not necessary (except in past years, FIRST didn't break out the sum of a team's scoring types, which is why I thought the lack of CP/HP/BP/FP in the match scores was a deal-killer).

Bongle 05-03-2012 16:59

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Alright, starting work on the bridge/basket/foul/coopertition analysis component now. I'm pretty excited. Hopefully done in a few hours (8pm EST).

Bongle 05-03-2012 18:48

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
1 Attachment(s)
Ok, here's v19. This includes, for 2012, the ability to rank teams on hybrid/bridge/teleop categories. I assumed that 2 coopertition points = 10 points of bridge scoring.

I may have skipped a version number.

billbo911 05-03-2012 21:19

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
OK, I'm running Win 7 x64. When I run OPRNet from a command line, I get an error saying MSVCP100.dll is missing.
I re-installed it, but the error keeps popping up every time I try to run OPRNet.
Any clue what's happening and how to cure this?

Bongle 05-03-2012 21:47

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by billbo911 (Post 1139788)
OK, I'm running Win 7 x64. When I run OPRNet from a command line, I get an error saying MSVCP100.dll is missing.
I re-installed it, but the error keeps popping up every time I try to run OPRNet.
Any clue what's happening and how to cure this?

Try installing the Visual C++ 2008 runtimes: http://www.microsoft.com/download/en/details.aspx?id=29

billbo911 05-03-2012 22:37

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Quote:

Originally Posted by Bongle (Post 1139813)
Try installing the Visual C++ 2008 runtimes: http://www.microsoft.com/download/en/details.aspx?id=29

Nope, same error after install.


All times are GMT -5. The time now is 21:45.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi