Go to Post BEING a chairmans team is alot more important then WINNING the chairmans award. - fuzzwaz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-03-2012, 00:48
Lalaland1125 Lalaland1125 is offline
Registered User
AKA: Ethan Steinberg
FRC #2429
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: La Canada
Posts: 29
Lalaland1125 is an unknown quantity at this point
Re: Twitter decoding program

I have now added least squares solving in order to better find the "impact" each team had on the score. The results are now much more accurate, and better predict the results in the final match( the total of the average scores from each team member is around +- 5 from the total score for that team(excluding outliers like team 93)).

( I am only using data from the qualifying matches to predict the final rounds)

While of course hand recording the individual scores of each team would be more accurate, this should be a great help in determining which teams provide the most "positive" points to help in the finals.
Attached Files
File Type: xls exampleResults.xls (24.0 KB, 17 views)
File Type: cpp main.cpp (7.1 KB, 11 views)

Last edited by Lalaland1125 : 16-03-2012 at 00:11.
  #2   Spotlight this post!  
Unread 15-03-2012, 20:15
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,098
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Twitter decoding program

Quote:
Originally Posted by Lalaland1125 View Post
I have now added least squares solving in order to better find the "impact" each team had on the score. The results are now much more accurate...
Just a heads-up: the Twitter data has completeness issues:

http://www.chiefdelphi.com/forums/sh....php?p=1144595

http://www.chiefdelphi.com/forums/sh....php?p=1144727


Oh, and a couple questions: What linear algebra library are you using, and is there a reason you are using SVD?


  #3   Spotlight this post!  
Unread 16-03-2012, 00:12
Lalaland1125 Lalaland1125 is offline
Registered User
AKA: Ethan Steinberg
FRC #2429
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: La Canada
Posts: 29
Lalaland1125 is an unknown quantity at this point
Re: Twitter decoding program

The math library is Eigen.

The reason why I am using SVD is because that is how Eigen's tutorials describe how to perform a least squares operation(http://eigen.tuxfamily.org/api/Tutor...Leastsqua res)

I don't think missing scores is going to be that bad. As long as most of the scores are posted, there should be enough data to get a reasonably accurate result. If anything, the main problem with my model is that it is very limited, not counting defense, autonomous, etc

Last edited by Lalaland1125 : 16-03-2012 at 00:15.
  #4   Spotlight this post!  
Unread 16-03-2012, 16:52
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,098
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Twitter decoding program

Quote:
Originally Posted by Lalaland1125 View Post
The reason why I am using SVD is because that is how Eigen's tutorials describe how to perform a least squares operation(http://eigen.tuxfamily.org/api/Tutor...Leastsqua res)
SVD is just one (of many) ways to compute least squares. The choice of the "best" method to use (like choosing the right tool for a job) depends on the problem domain.

For this application, LDLT would be far faster* and plenty accurate.


Quote:
I don't think missing scores is going to be that bad. As long as most of the scores are posted, there should be enough data to get a reasonably accurate result.
Be aware: There are already two events (Oregon and Traverse City) for which data is missing for the entire event. No guarantee that won't happen for more events as the season rolls on. Not counting these two events, over 12% of the data is missing for the other events.



* For computing least squares for single events, the matrix is small enough that the time difference is probably not even noticeable. But if you ever intend to expand the functionality to compute least squares for a matrix containing all the data from an entire year's worth of events, I believe there would be a very noticeable difference in speed. If you have the time and are so inclined, it would be interesting if you would try SVD with 2011's data and see what the computation time is. For reference, LDLT takes 12 seconds on my 8-year-old PC to do least squares on a matrix populated with all the qual data from all the events in 2011
Attached Thumbnails
Click image for larger version

Name:	choose LDLT for symmetric semi-definite.png
Views:	39
Size:	36.7 KB
ID:	12331  

Last edited by Ether : 16-03-2012 at 17:42.
  #5   Spotlight this post!  
Unread 21-03-2012, 18:08
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,098
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Twitter decoding program

Quote:
Originally Posted by Ether View Post
Be aware: There are already two events (Oregon and Traverse City) for which data is missing for the entire event. No guarantee that won't happen for more events as the season rolls on. Not counting these two events, over 12% of the data is missing for the other events.
Twitter data is missing entirely for the San Diego, Oregon, Traverse City, Sacramento, and Utah events.



Quote:
For this application, LDLT would be far faster* and plenty accurate.
The alliance selection algorithm in the qualification match scheduling software used for FRC events pretty much guarantees that the design matrix A (i.e. Ax≈b) will be full rank and well-conditioned. This means that forming the normal equations (Px=ATAx=ATb=S) and solving with Cholesky decomposition (LLT or LDLT) will give excellent numerical stability and accuracy and be far faster than other methods (and require much less memory). Furthermore, the normal equations can be formed directly in one pass (without the need to form the design matrix and multiply it by its transpose) when the raw data is read and parsed.



Last edited by Ether : 22-03-2012 at 14:03.
  #6   Spotlight this post!  
Unread 22-03-2012, 15:09
kmehta kmehta is offline
Registered User
FRC #0604 (Quixilver)
Team Role: Mentor
 
Join Date: Apr 2009
Rookie Year: 2003
Location: San Jose, CA
Posts: 45
kmehta is a glorious beacon of lightkmehta is a glorious beacon of lightkmehta is a glorious beacon of lightkmehta is a glorious beacon of lightkmehta is a glorious beacon of lightkmehta is a glorious beacon of light
Re: Twitter decoding program

Quote:
Originally Posted by Ether View Post
Twitter data is missing entirely for the San Diego, Oregon, Traverse City, Sacramento, and Utah events.
Regarding Sacramento, I talked with the field crew/FTA and their Twitter posts were apparently being blocked by the firewall. If the same happens at SVR, we will have a team member manually copy the data down so it won't be lost.
__________________
2010 - SVR Engineering Inspiration; SAC WFFA, Regional Winner (thanks 3256, 2761) & Regional Chairman's Award
2011 - SAC WFFA & Regional Chairman's Award; SVR Regional Finalist (thanks 1323, 1868)
2012 - SAC Engineering Inspiration; SVR WFFA, Dean's List Finalist & Regional Chairman's Award
2013 - SAC Quality Award; SVR WFFA, Regional Chairman's Award
2014 - SDR Entrepreneurship Award; SVR Regional Chairman's Award
2015 - CVR Regional Chairman's Award
2016 - SAC Regional Chairman's Award & Regional Finalist (thanks 1323, 1671)
  #7   Spotlight this post!  
Unread 22-03-2012, 21:29
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,098
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Twitter decoding program

Quote:
Originally Posted by kmehta View Post
Regarding Sacramento, I talked with the field crew/FTA and their Twitter posts were apparently being blocked by the firewall. If the same happens at SVR, we will have a team member manually copy the data down so it won't be lost.
It is admirable and I applaud your team for being willing to do that.

But in all seriousness, why should that even be necessary?

This data has significant statistical value and historical interest. The data is already in electronic form. Does anyone know: Is there a compelling reason why the data is being discarded instead of being saved at the point of origin?


Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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