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 17-03-2009 16:18

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

Originally Posted by andrew418 (Post 837372)
Hi, I've been trying to access the ratings for the Dallas regional, and the program has not been able to parse the html data. Does anyone know why?

Annoyingly, it looks like the HTML output by the Texas regional is quite different than that spat out by every other regional so far. It has the same style as the HTML printed out by the first 1-2 weeks of regionals last year. It might be time to adjust OPRNet to read off of TBA instead of USFirst.

billbo911 17-03-2009 16:45

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

Originally Posted by Bongle (Post 837381)
Annoyingly, it looks like the HTML output by the Texas regional is quite different than that spat out by every other regional so far. It has the same style as the HTML printed out by the first 1-2 weeks of regionals last year. It might be time to adjust OPRNet to read off of TBA instead of USFirst.

Well, as long as you get the TBA feed version perfected by next Wednesday, you have my permission to do it. :p

Seriously now, if a TBA version is more reliable, then go for it. With the latest copy of your code AND a TBA version, I feel very confident we will be able to gather some fairly valid information. It will be interesting to compare the results.

Nawaid Ladak 17-03-2009 18:41

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
i was wondering, i used to use OPR's back in 2006 and 2007 when they first became available

I was curious as to how the opponents you play factor into the situation. i'd much rather see a formula like a RPI or a SoS used alongside the OPR, DPR, and PM systems already established

ie

RPI
=
teams winning percentage x .25 +
opponents winning percentage x .5 +
opponents opponents winning percentage x .25

SoS
=
(Opponents win percentage) - (Your Alliance Partners win percentage)

i think looking at these stats alongside the OPR, DPR and PM systems can truly show which teams are better than what is shown on the standings, and which teams just got bad luck and got paired with their worst nightmare's

(Im using this to scout because i don't have any video from the Oregon Regional to view.)

Bongle 17-03-2009 19:06

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

Originally Posted by billbo911 (Post 837408)
Well, as long as you get the TBA feed version perfected by next Wednesday, you have my permission to do it. :p

Seriously now, if a TBA version is more reliable, then go for it. With the latest copy of your code AND a TBA version, I feel very confident we will be able to gather some fairly valid information. It will be interesting to compare the results.

V8: Now uses TBA as a fallback for 2009 regionals, and as the only source for pre-2009 regionals. Note that because of this, this version should be able to do any regional that TBA has in its database, which is a big improvement over earlier versions.

...It may have a lot of bugs in it. I think I got rid of most of them, but there are probably a few left.

Quote:

RPI
=
teams winning percentage x .25 +
opponents winning percentage x .5 +
opponents opponents winning percentage x .25
I will try to implement this, I don't think it should be too hard so long as I get the recursion right.

Bongle 17-03-2009 19:55

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

Originally Posted by Bongle (Post 837467)
I will try to implement this, I don't think it should be too hard so long as I get the recursion right.

V9: Now computes RPI. I looked at SoS, couldn't find any quick explanations for it, so I didn't bother.

Gaurav27 17-03-2009 21:37

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
Bongle, you're awesome!
It works like a charm! :eek:
By the way, is there any way we can output the temporary file created through command prompt to an EXCEL worksheet?
Just for quick ranking purposes...?

Quote:

opponents opponents winning percentage x .25
Also, what do you mean by the above statement? I couldn't catch that.

engunneer 17-03-2009 21:47

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

Originally Posted by Nawaid Ladak (Post 837458)
(Im using this to scout because i don't have any video from the Oregon Regional to view.)

You can view videos of the Oregon regional at http://www.bpsepaa.com/video . login is guest with password guest (or you can register)

Nawaid Ladak 17-03-2009 23:06

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

Originally Posted by Gaurav27 (Post 837535)
Also, what do you mean by the above statement? I couldn't catch that.

the win percentage of whoever your opponents played during the regional

Quote:

Originally Posted by engunneer (Post 837542)
You can view videos of the Oregon regional at http://www.bpsepaa.com/video . login is guest with password guest (or you can register)

yeah, i saw that five minutes after i posted that.

Oh, SoS-Strength of Schedule, pretty much, what was your opponents record. but i guess that's already factored into the RPI as is

i love it when we can use a formula for College Basketball and FIRST at the same time

Bongle 18-03-2009 09:46

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

Originally Posted by Gaurav27 (Post 837535)
Bongle, you're awesome!
It works like a charm! :eek:
By the way, is there any way we can output the temporary file created through command prompt to an EXCEL worksheet?
Just for quick ranking purposes...?

From the command line:
"oprnet (regional) (year) (statistic) (team/rank ranking) q > output.out"
Ex: "oprnet il 2009 all r q > output.txt" will print all stats for Midwest 2009 to output.txt in a tab-separated table.

That will spit out all the data to a file called output.out (it can be called anything). It'll all be tab-separated (make sure you put that q there, or it won't put the tabs), so you can copy/paste it into excel. Look through the thread for examples of the usage.

Quote:

Also, what do you mean by the above statement? I couldn't catch that.
WP: wins / games played
OWP: Average of a team's opponent's WP's
OOWP: Average of a team's opponent's OWP's

This recursive implementation is very slow, but it was very easy to implement.

Goldeye 30-03-2009 01:17

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
I'm unable to get any results from years other than 2009, using v9.
Code:

File download complete
Failure to parse qualification match 0
        Failure to parse from TBA and USFirst, giving up.  Code: -2147467259


Johnny 30-03-2009 01:37

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
This is a nice tool and most of the information is pretty accurate according to my own.

Bongle 30-03-2009 07:03

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

Originally Posted by Goldeye (Post 842932)
I'm unable to get any results from years other than 2009, using v9.
Code:

File download complete
Failure to parse qualification match 0
        Failure to parse from TBA and USFirst, giving up.  Code: -2147467259


Strange. I'll try to look into it tonight. I'm getting the same result.

JesseK 30-03-2009 08:40

Re: Easy to use Offensive Power Rankings (OPR) program for mid-regional scouting
 
There is no Match Zero....

Bongle 30-03-2009 09:16

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

Originally Posted by JesseK (Post 843008)
There is no Match Zero....

That's not the problem. That is just an error in how I report which match it failed on (it should have a +1 on it). My best guess is that TBA changed how its HTML is created, and now my parser doesn't work anymore.

Edit: And my suspicion is correct: they've greatly changed the HTML. However, it'll be easier to parse now, so it shouldn't take too long to make a new parser.

JesseK 30-03-2009 10:07

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

Originally Posted by Bongle (Post 843020)
Edit: And my suspicion is correct: they've greatly changed the HTML. However, it'll be easier to parse now, so it shouldn't take too long to make a new parser.

Yea, my TBA parser broke a couple of weeks ago because of this...didn't even think about it since the match 0 thing threw me off. I had to add a bit of protection from those match 0's...

In my latest version I have a flag set which writes a formatted line out to a java file. If I run the main program from Eclipse, it will download all of the data and auto-program itself into the next time the program launches. Fun stuff ... or scary iRobot stuff, however you look at it :ahh:

I will say that doing the permanent data increases the program size by a few hundred K, but if you're using Java a few hundred K shouldn't matter :p


All times are GMT -5. The time now is 00:38.

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