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)

RogerR 07-03-2012 19:20

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

Originally Posted by Bongle (Post 1140730)
If you rename the temporary files to .html and try to view them in a browser, they should just be the FIRST results pages. If they aren't, or they look stylistically different than this one, then the parser that extracts the scores might be having trouble.


I believe that's the technique the matrix solving library I use (JAMA) uses. I don't know too many details about it.

Sorry, should have specified.

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.

Bongle 07-03-2012 19:48

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

Originally Posted by RogerR (Post 1140752)
Sorry, should have specified.

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.

Here's v21: The only new feature is that it won't instantly shut down when it has an error. This should help debug your problem. If you run the current one from a command line that'd help too.

BlacksmithWoods 07-03-2012 21:29

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 -2147024809
Thanks! :D

Edit: Is this because I'm using v21 and I'm checking years prior to 2012?

Ether 07-03-2012 22:55

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

Originally Posted by Bongle (Post 1140730)
I believe that's the technique the matrix solving library I use (JAMA) uses. I don't know too many details about it.

For coefficient matrices associated with processing data from single events one at a time (even large events), LU is probably fine. But if you ever want to do computations for, say, an entire year's worth of data in one matrix (simultaneous solution using data from all events in the year), you might want to consider using Cholesky instead. It's twice as fast. The JAMA library you are using supports Cholesky.



Bongle 08-03-2012 06:43

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.

JesseK 08-03-2012 09:27

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?

Clinton Bolinger 08-03-2012 09:38

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

Originally Posted by Bongle (Post 1139965)
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.

Why wouldn't we want to have the Coopertition Points to time 10 instead of 5?

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-

Bongle 08-03-2012 10:44

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

Originally Posted by Clinton Bolinger (Post 1140960)
Why wouldn't we want to have the Coopertition Points to time 10 instead of 5?

-Clinton-

But CPs are handed out to both alliances and require both alliances to participate.

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:

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?
I've got it on a local perforce server in my house, but nowhere else other than my intermittent source posts on CD. Since I'm unlikely to touch the code at all post-CMP, you could take the last source post I make, make the changes, then post it back on CD (or set up an actual repository).

RogerR 08-03-2012 10:50

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

Originally Posted by Bongle (Post 1140911)
v22 - should fix the problems with downloading past-years results.

Ether, thanks for the tip.

I'm getting a message that says it can't download the results; does that have something to do with the firewall here at the school where I teach?

Ether 08-03-2012 10:54

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

Originally Posted by RogerR (Post 1141001)
I'm getting a message that says it can't download the results; does that have something to do with the firewall here at the school where I teach?

Click on the link in this post:

http://www.chiefdelphi.com/forums/sh...&postcount=255

... and see if you have permission to download the data.



AlexD744 11-03-2012 20:06

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

Originally Posted by Ether (Post 1141006)
Click on the link in this post:

http://www.chiefdelphi.com/forums/sh...&postcount=255

... and see if you have permission to download the data.



I'm getting the same message, saying that I can not download the results. I tried clicking on the link in that post and it worked fine. Any other suggestions? If it helps the error code is: -2147024891, and I am using v22.

Bongle 11-03-2012 20:11

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

Originally Posted by AlexD744 (Post 1142383)
I'm getting the same message, saying that I can not download the results. I tried clicking on the link in that post and it worked fine. Any other suggestions? If it helps the error code is: -2147024891, and I am using v22.

I actually had a similar problem earlier today - are you trying to run it from inside the zip file? I found that windows wouldn't permit the temporary file to be created if you ran it inside the zip file. Try copying OPRNet.exe to your desktop or something, then running it.

AlexD744 11-03-2012 20:13

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

Originally Posted by Bongle (Post 1142385)
I actually had a similar problem earlier today - are you trying to run it from inside the zip file? I found that windows wouldn't permit the temporary file to be created if you ran it inside the zip file. Try copying OPRNet.exe to your desktop or something, then running it.

Works perfectly now, thank you!

Bongle 11-03-2012 20:23

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.

dodar 11-03-2012 21:34

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Its saying that the file is invalid or corrupted.


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