![]() |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
2 Attachment(s)
v15 - I realized that I wanted to know the OPR of "on2" and it wouldn't let me, so v15 disables the "correct regional code" checker, so it'll work on any regional code imaginable. Also updates the regional code list so that you see the 2011 set of regionals.
Sorry to fans of the "all" option. I don't have enough time to recover that feature, and I can't guarantee it'd get updated in future years (or that I'd get every regional). However, I keep posting the source in the hopes someone else can pick up the torch and add cool features. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Its also crashing on the predict option when it tries to calculate the final seeding, at least for GTREast
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Can someone fluent in java update the GUI found around post 5?
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Version 15 crashes on Troy data. I found it works with version 11 so here is the data for convenience.
Code:
0 217 51.5663 |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Still works :-) I haven't updated the regional list for 2012, I'll try to do that tonight.
Latest version (v16) can be found in this post. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
Here's v16. The only change is that the regional list it gives is the 2012 version.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Using predict makes the program crash. Any fix for it?
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
Fixed.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
I have tried alamo kettering and other regionals.
I do 2012 gg predict t Then I get errors also have tried to sort it by rank it crashes then. It works if you use opr and other stuff but not predict. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Thanks your awesome. Also can you copy the values put of the program anyway?
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
If you run it normally, you can right-click on the program window, choose mark, then drag-select what you want to copy and press enter. Then paste it into notepad. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Another thing I noticed is the predict doesnt work by ranking. It just still prints out the teams in their numerical order even when I type in that I want ranking.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
I ran the numbers for all of the regionals/districts have reported match results:
Quote:
mean: 4.78140686 median: 3.803155 stdev: 6.27617293 |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Looks like something I should try out. Will get back with results!
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Did you grab data from all of the events at once?
How? |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
My output is:
Its not working right.... Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
Quote:
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
You're right the predicted standings don't seem to work - it might be ranking using 2010's strange method rather than a normal W-L-T. Due to coopertition bridges though, I wouldn't worry about the predicted standings - they'll be completely wrong anyway since the bridge points aren't taken into account. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
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. |
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?
|
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?
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
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 |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
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. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
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. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
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. |
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. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
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).
|
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. |
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? |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
I'm having the same issue as Mr. Bill, but on XP x32 (I know, antiquated, right?).
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
I just tried installing the MS Visual C++ 2010 as well, and that didn't fix it either.
Now this is getting odd! OK, it's a few minutes later now. I just copied the MSVCP100.dll file from system32 into the folder with OPRNet. I now get a different error. See the attached image. I read a few message on the net saying something about linking the dll's statically. Does that make sense to you? This is way out of my league. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Ah, I must have messed up my project settings. I changed its directory on my computer so I could get it in source control, and I must have forgotten to move something else or change a setting.
Edit: Whoops, I'm so used to developing on VS2008 I forgot I've moved to 2010 at home. Ok, so you need these runtimes: http://www.microsoft.com/download/en...s.aspx?id=5555 |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
Here's v20. I made it so the overall OPR is also given the coopertition adjustment (coopertition points * 5, assuming that CPs are points you could have gotten if your alliance assigned you to a different bridge), and did a clean-and-build to attempt to fix the 0xc000007b errors people are getting.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
Bongle, Can I ask you a favor? Can you please make a single post describing all the command line options? I've been using this awesome little tool for a few seasons now and really love it. The problem is, my PC took a dive last fall and I lost all my batch files I used as templates. So, I need to start from scratch and I am, well, a bit lazy and don't want to read through 16+ pages of posts to find all the tricks I used to generate the data I used to use. :( Thanks! |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
It says i cant run because im missing the MSVCP100.dll and I cant find that .dll
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
Code:
oprnet gg 2012 bridge r q > allopr-bridge.txt"oprnet nh 2012 hybrid r q >> allopr-hybrid.txt" Broken down: oprnet - you need this part to start the program :) nh - indicates you care about the new hampshire regional 2012 - indicates you want results for 2012 hybrid - indicates the statistic you want to print (other options for 2012: opr, teleop, hybrid, bridge) r - sort teams by ranking (as opposed to 't', which sorts them by team number) q - quiet mode: makes it not print out status data. Also changes the output format so it's easier to copy/paste into excel. If you want loud mode from the command line for whatever reason, just omit the q. >> - tells DOS to append all output from oprnet to a text file. The single greater-than ('>') tells it to clear out the file and start over. allopr-hybrid.txt - which file you want to output to. The q is optional, and the ">> blah.txt", being a DOS command, is also optional. If you don't have the ">> blah.txt", it'll just spit to your command-line window. Note that because I'm lazy and because I doubt there's that much use nowadays of the more esoteric parameters like SAA, PM, or DPR, I don't really support them and if the app crashes when you try to use one, I am not that bothered. In 2013, I'm likely to not care very much if the bridge/teleop/hybrid feature gets broken as well. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
Quote:
First, follow the link in Bongle's message above and add the Visual 2010 runtimes. Then download and run his v.20 and you should find it works again. Quote:
As always, you have exceeded my expectations. Thanks for getting exactly what I am looking for spelled out so quickly!!:D |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Great work as always.
Where do get the data from? FMS Twitter Feed? FRCspy? |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
*I haven't actually tested the TBA backup code in a while, I'm not sure it still works since it is at least 2 years old. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
This is awesome. Thank you!
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
I've been fairly googlish with my posting of source code, but here's v20's. It's fairly hackish code because I keep patching it with new features each year that I didn't originally envision, so please don't judge me on the quality.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
I might be doing this wrong, but I seem to be having a problem; whenever I submit a response to the final query (i.e. 'r' for sort teams by rank), it creates two temporary files, then shuts down. A couple years ago, when I fooled around with one of your earlier versions, it worked fine. Now however, apparently I'm doing something wrong. Any idea what I've done? |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
It doesn't ever return any results. After a second of thinking, it just shuts down, though I did notice it creating those two temp files. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
What does this mean? I keep getting:
Code:
Failure to download results. Code -2147024809Edit: Is this because I'm using v21 and I'm checking years prior to 2012? |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
v22 - should fix the problems with downloading past-years results.
Ether, thanks for the tip. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Bongle, in the post-season I may assist you with some refactoring if you'd like. Extension of legacy code well after its expected end of life cycle is what I do best at work. Do you have the code up on a repository?
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
The Coop Bridge is the same maneuver as a 2-bot balance which is equal to 20 points. Also for bridge OPR I would use the BP + (CP*10) = Total Bridge Points. This will assist team that are looking for good Bridge balancers. -Clinton- |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
2-bot balance = 20 points granted to the 3-robot alliance that scored it = 60 robot-points. co-op balance = 2 CPs granted to all 6 robots on the field = 12 robot-CPs. If we want it to be equivalent, then I think we should say it was 5 fake points per CP. I could take the adjustment out entirely and make a 4th stat that just shows how many CPs a team is expected to achieve, then teams could apply their own adjustment if they felt like it. Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
http://www.chiefdelphi.com/forums/sh...&postcount=255 ... and see if you have permission to download the data. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Excellent, I confirmed it as well. Here's v23, which downloads to your windows temp folder (as reported by GetTempPath()) rather than the local folder. It also cleans up after itself when it is done, which the old version did not.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Its saying that the file is invalid or corrupted.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
How do you get a MSVCP100.dll?
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
*at "http://www2.usfirst.org/2012comp/Events/XXX/matchresults.html" |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
Or you could get the same data as the Twitter feed from CD's frcspy XML feed, no? |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
v24: New feature - The 'sched' statistic prints out the average OPR of your allies and opponents so you can kvetch about how you had to play 1114, 2056, 67, 341 and so on every single match and that's why you ranked so low :-)
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
I seem to be doing something very wrong. Every time I enter anything in the OPRnet (v24) window, it goes into what appears to be an infinite loop of location codes (I think; it's going really fast). Text saying "Please e... >>>" [enter?] zips by every loop as well.
Anyone feel like helping a clueless gearhead? EDIT: I've tried using the sample offered in the opening lines of the OPRnet window, as well as various codes from threads like these. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
Quote:
The little scripts you see posted around (like "oprnet il 2009 opr r q > output.txt") are for if you want to automatically run oprnet from a batch file without having to actually interact with it. It's useful for spitting out results for a ton of regionals at once. v25 - fixes that bug, and no longer requires the visual c++ 2010 runtimes to run! Hooray for changing a small configuration option! |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Do'h! Awesome, thank you. I guess to run a batch file you have to like, use a batch file, huh? Whoops. :o
EDIT: Oh, thank you again :) [for v25] |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
v25 works great. Thank you!!
Will you be posting the v25 sources at some point? |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
1 Attachment(s)
v25 source.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Thanks for sharing the sources Bongle!
I'm a new mentor this year. Being a programmer I want to get my head into the actual algorithm used to calculate the OPR and DPR values to understand it for myself. A quick scan of the sources shows its playing with matrices so I am guessing its time to refresh myself on Linear Algebra. I skimmed around the CD forums but I see mostly talk of using the values but nothing on any actual algorithm (or a description of the algorithm). I am sure there has to be some place it is described but I am just not finding it. Can anyone point me in the right direction? |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
I just tried to use OPRNet 25 on a couple of the divisions at the current Championships and it is not happy with something:
3 [C:\Downloads\OPRNet25] oprnet arc 2012 opr r Temporary file created URL opened Downloaded 1024 bytes Downloaded 1245 bytes Downloaded 1245 bytes File download complete Parsing! No matches found. This regional may not have run yet, or may have HTML output that the parser does not recognize. Failure to parse XML. Code: -2147467259 Press any key to continue . . . 3 [C:\Downloads\OPRNet25] oprnet new 2012 opr r Temporary file created URL opened Downloaded 1024 bytes Downloaded 1245 bytes Downloaded 1245 bytes File download complete Parsing! No matches found. This regional may not have run yet, or may have HTML output that the parser does not recognize. Failure to parse XML. Code: -2147467259 Press any key to continue . . . Is anyone else seeing this? (I know there is data as I can see it on the FIRSt site.) Just thought I would ask before I try to dive into the source. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
On a side note, the OPRs of the Divisions Thursday night are pretty much worthless. With only 3-4 matches completed for 100 teams, the matrix is barely solveable. Expect lots of redculously high and low numbers :rolleyes: |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Yeah, the numbers probably won't be usable until teams' 6-7th matches. I wish I knew more stats and could give error bars on team's OPRs, that'd be handy. It's just a simple linear regression, I'd think the math on how to get confidence intervals would be straightforward, but I haven't found it.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
I found it took until the 7-8th matches to settle down enough to be usable.
For fun I also had it predict the Saturday AM matches for all 4 divisions. It correctly predicted 72.72% of the Archimedes matches and a few were pretty dang close to the predicted score. I will check how well it did on the other 3 divisions if anyone is interested. |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
http://www.chiefdelphi.com/forums/sh....php?p=1165314 |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Sorry for thread bumping if this is a dead channel, but I'm curious as to where I could find the OPRNet.exe for this season.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
http://frclinks.frclinks.com/ |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Quote:
Because I don't have the time anymore to update it :( Couldn't even make it to montreal with 2702 :( :( |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Thank you, I'll give it a shot!
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Doesn't work for me... It doesn't allow me to use the new codes. For example, whenever I type "ista" it reprints the list of old codes.
|
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
I got it to output the raw OPR for Oregon correctly. It's just weird that it has an option to select bridge points :S
I would love to be able to sort by hybrid, climb and do everything from last year. Maybe I'll need to take a look at the source code and see how hard it would be to bring it up to speed with 2013. I don't know if I'm up to the task, but I'd certainly like the data :) |
Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
Does it allow for week 2 events? I tried everything for Orlando and then tried San Diego to just make sure I wasn't doing anything wrong and it failed every time.
|
| 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