]> git.sesse.net Git - wloh/log
wloh
12 years agoFactor out some HTML headers and footers.
Steinar H. Gunderson [Sun, 25 Mar 2012 15:41:58 +0000 (17:41 +0200)]
Factor out some HTML headers and footers.

12 years agoFactor out fetching of aux parameters.
Steinar H. Gunderson [Sun, 25 Mar 2012 15:36:01 +0000 (17:36 +0200)]
Factor out fetching of aux parameters.

12 years agoFactor player and rating fetching into its own function.
Steinar H. Gunderson [Sun, 25 Mar 2012 15:31:10 +0000 (17:31 +0200)]
Factor player and rating fetching into its own function.

12 years agoFactor out the parameter saving into its own function.
Steinar H. Gunderson [Sun, 25 Mar 2012 15:25:58 +0000 (17:25 +0200)]
Factor out the parameter saving into its own function.

12 years agoFactor out fetching of the covariance matrix into its own function.
Steinar H. Gunderson [Sun, 25 Mar 2012 15:23:22 +0000 (17:23 +0200)]
Factor out fetching of the covariance matrix into its own function.

12 years agoFactor out the division selector into its own function.
Steinar H. Gunderson [Sun, 25 Mar 2012 15:21:41 +0000 (17:21 +0200)]
Factor out the division selector into its own function.

12 years agoFactor out subdivision-fetching code.
Steinar H. Gunderson [Sun, 25 Mar 2012 15:15:24 +0000 (17:15 +0200)]
Factor out subdivision-fetching code.

12 years agoFactor out division-fetching code.
Steinar H. Gunderson [Sun, 25 Mar 2012 15:12:21 +0000 (17:12 +0200)]
Factor out division-fetching code.

12 years agoFactor out get_max_season into a function.
Steinar H. Gunderson [Sun, 25 Mar 2012 15:05:11 +0000 (17:05 +0200)]
Factor out get_max_season into a function.

12 years agoAdd a function to the MC simulator to find the most likely set of results resulting...
Steinar H. Gunderson [Sun, 25 Mar 2012 13:58:32 +0000 (15:58 +0200)]
Add a function to the MC simulator to find the most likely set of results resulting in a given outcome.

12 years agoAdd average rating display.
Steinar H. Gunderson [Fri, 23 Mar 2012 00:11:25 +0000 (01:11 +0100)]
Add average rating display.

12 years agoFix a leftover 1700 value in the README.
Steinar H. Gunderson [Thu, 22 Mar 2012 00:21:15 +0000 (01:21 +0100)]
Fix a leftover 1700 value in the README.

12 years agoOutput when we last synced.
Steinar H. Gunderson [Thu, 22 Mar 2012 00:11:58 +0000 (01:11 +0100)]
Output when we last synced.

12 years agoSpelling fixes.
Steinar H. Gunderson [Tue, 20 Mar 2012 21:41:42 +0000 (22:41 +0100)]
Spelling fixes.

12 years agoUse covariance matrix under Monte Carlo simulation, to draw better strengths.
Steinar H. Gunderson [Tue, 20 Mar 2012 20:57:06 +0000 (21:57 +0100)]
Use covariance matrix under Monte Carlo simulation, to draw better strengths.

12 years agoStore covariance matrix when training model.
Steinar H. Gunderson [Tue, 20 Mar 2012 20:56:43 +0000 (21:56 +0100)]
Store covariance matrix when training model.

12 years agoUse the matrix class from Eigen directly instead of copying from an array. Seems...
Steinar H. Gunderson [Tue, 20 Mar 2012 09:50:37 +0000 (10:50 +0100)]
Use the matrix class from Eigen directly instead of copying from an array. Seems to be a bit (100ms!?) faster.

12 years agoInvert the Hessian using Eigen instead of just using the diagonal. Gives slightly...
Steinar H. Gunderson [Tue, 20 Mar 2012 01:05:33 +0000 (02:05 +0100)]
Invert the Hessian using Eigen instead of just using the diagonal. Gives slightly wider/better standard deviations, at the cost of more of numerical problems.

12 years agoMake the pages validate as XHTML 1.1.
Steinar H. Gunderson [Mon, 19 Mar 2012 13:45:22 +0000 (14:45 +0100)]
Make the pages validate as XHTML 1.1.

12 years agoBack up all tables, not just the ones we need themselves.
Steinar H. Gunderson [Mon, 19 Mar 2012 13:45:13 +0000 (14:45 +0100)]
Back up all tables, not just the ones we need themselves.

12 years agoWhen doing Monte Carlo, player strength should be constant within a simulated round.
Steinar H. Gunderson [Mon, 19 Mar 2012 13:44:58 +0000 (14:44 +0100)]
When doing Monte Carlo, player strength should be constant within a simulated round.

12 years agoTake standard deviation of estimated mu into account when doing MC simulation.
Steinar H. Gunderson [Mon, 19 Mar 2012 01:52:47 +0000 (02:52 +0100)]
Take standard deviation of estimated mu into account when doing MC simulation.

12 years agoTake prior into account when computing Hessian.
Steinar H. Gunderson [Mon, 19 Mar 2012 01:15:26 +0000 (02:15 +0100)]
Take prior into account when computing Hessian.

12 years agoUpdate README with information that we have stddevs now.
Steinar H. Gunderson [Mon, 19 Mar 2012 00:48:43 +0000 (01:48 +0100)]
Update README with information that we have stddevs now.

12 years agoSmall typofix in README.
Steinar H. Gunderson [Mon, 19 Mar 2012 00:48:33 +0000 (01:48 +0100)]
Small typofix in README.

12 years agoFix rating display after the stddev changes.
Steinar H. Gunderson [Mon, 19 Mar 2012 00:02:02 +0000 (01:02 +0100)]
Fix rating display after the stddev changes.

12 years agoWhen training, only include players with games.
Steinar H. Gunderson [Sun, 18 Mar 2012 23:53:50 +0000 (00:53 +0100)]
When training, only include players with games.

12 years agoShow rating standard deviation.
Steinar H. Gunderson [Sun, 18 Mar 2012 23:49:40 +0000 (00:49 +0100)]
Show rating standard deviation.

12 years agoCompute and calculate standard deviations.
Steinar H. Gunderson [Sun, 18 Mar 2012 23:44:11 +0000 (00:44 +0100)]
Compute and calculate standard deviations.

12 years agoRemove individual sigmas.
Steinar H. Gunderson [Sun, 18 Mar 2012 23:13:32 +0000 (00:13 +0100)]
Remove individual sigmas.

12 years agoUpdate README with new information about calculation time.
Steinar H. Gunderson [Sun, 18 Mar 2012 22:25:59 +0000 (23:25 +0100)]
Update README with new information about calculation time.

12 years agoMake the Hessian calculation use the new all_matches vector.
Steinar H. Gunderson [Sun, 18 Mar 2012 22:11:39 +0000 (23:11 +0100)]
Make the Hessian calculation use the new all_matches vector.

12 years agoStore a vector of all matches; 90% of the time was spent in map lookup.
Steinar H. Gunderson [Sun, 18 Mar 2012 21:20:54 +0000 (22:20 +0100)]
Store a vector of all matches; 90% of the time was spent in map lookup.

12 years agoFix update_prior_sigma(); it should not have anything to do with the matches.
Steinar H. Gunderson [Sun, 18 Mar 2012 21:20:37 +0000 (22:20 +0100)]
Fix update_prior_sigma(); it should not have anything to do with the matches.

12 years agoFix a missing argument to printf.
Steinar H. Gunderson [Sun, 18 Mar 2012 21:07:27 +0000 (22:07 +0100)]
Fix a missing argument to printf.

12 years agoAdd a "ratings explained" page.
Steinar H. Gunderson [Sun, 18 Mar 2012 19:08:37 +0000 (20:08 +0100)]
Add a "ratings explained" page.

12 years agoSmall spelling fix.
Steinar H. Gunderson [Sun, 18 Mar 2012 15:37:16 +0000 (16:37 +0100)]
Small spelling fix.

12 years agoAdd division view.
Steinar H. Gunderson [Sun, 18 Mar 2012 15:36:52 +0000 (16:36 +0100)]
Add division view.

12 years agoMove CSS out into an external file.
Steinar H. Gunderson [Sun, 18 Mar 2012 15:29:54 +0000 (16:29 +0100)]
Move CSS out into an external file.

12 years agoCompute and store total log-likelihood of model.
Steinar H. Gunderson [Sun, 18 Mar 2012 12:34:12 +0000 (13:34 +0100)]
Compute and store total log-likelihood of model.

12 years agoAdd an optional prior weight. Does not seem to give a much better model, though.
Steinar H. Gunderson [Sun, 18 Mar 2012 12:21:15 +0000 (13:21 +0100)]
Add an optional prior weight. Does not seem to give a much better model, though.

12 years agoMerge branch 'master' of /srv/git.sesse.net/www/wloh
Steinar H. Gunderson [Sun, 18 Mar 2012 12:03:15 +0000 (13:03 +0100)]
Merge branch 'master' of /srv/git.sesse.net/www/wloh

12 years agoMinor constantification.
Steinar H. Gunderson [Sun, 18 Mar 2012 12:02:58 +0000 (13:02 +0100)]
Minor constantification.

12 years agoAdd an option to dump out the raw scores, for observation/curve-fitting.
Steinar H. Gunderson [Sun, 18 Mar 2012 10:59:20 +0000 (11:59 +0100)]
Add an option to dump out the raw scores, for observation/curve-fitting.

12 years agoAdd an option to dump out the raw scores, for observation/curve-fitting.
Steinar H. Gunderson [Sun, 18 Mar 2012 10:59:20 +0000 (11:59 +0100)]
Add an option to dump out the raw scores, for observation/curve-fitting.

12 years agoPrint the rating next to people in the MC display.
Steinar H. Gunderson [Sun, 18 Mar 2012 00:03:52 +0000 (01:03 +0100)]
Print the rating next to people in the MC display.

12 years agoAdd some disclaimers.
Steinar H. Gunderson [Sat, 17 Mar 2012 19:53:29 +0000 (20:53 +0100)]
Add some disclaimers.

12 years agoREADME update.
Steinar H. Gunderson [Sat, 17 Mar 2012 19:48:26 +0000 (20:48 +0100)]
README update.

12 years agoSet expires=5m for the ranking.
Steinar H. Gunderson [Sat, 17 Mar 2012 19:44:36 +0000 (20:44 +0100)]
Set expires=5m for the ranking.

12 years agoMake a rating page.
Steinar H. Gunderson [Sat, 17 Mar 2012 19:44:04 +0000 (20:44 +0100)]
Make a rating page.

12 years agoAlso ignore 150-150 matches when training model.
Steinar H. Gunderson [Sat, 17 Mar 2012 18:21:54 +0000 (19:21 +0100)]
Also ignore 150-150 matches when training model.

12 years agoDo not print relegation information for the lowest division.
Steinar H. Gunderson [Sat, 17 Mar 2012 18:05:57 +0000 (19:05 +0100)]
Do not print relegation information for the lowest division.

12 years agoSubmit the form automatically when needed.
Steinar H. Gunderson [Sat, 17 Mar 2012 18:02:25 +0000 (19:02 +0100)]
Submit the form automatically when needed.

12 years agoSet expires to now instead of an arbitary date.
Steinar H. Gunderson [Sat, 17 Mar 2012 18:02:03 +0000 (19:02 +0100)]
Set expires to now instead of an arbitary date.

12 years agoLock season to newest.
Steinar H. Gunderson [Sat, 17 Mar 2012 17:35:55 +0000 (18:35 +0100)]
Lock season to newest.

12 years agoFix sanitizing and UTF-8.
Steinar H. Gunderson [Sat, 17 Mar 2012 17:35:44 +0000 (18:35 +0100)]
Fix sanitizing and UTF-8.

12 years agoSupport changing divisions etc.
Steinar H. Gunderson [Sat, 17 Mar 2012 17:24:22 +0000 (18:24 +0100)]
Support changing divisions etc.

12 years agoA README change.
Steinar H. Gunderson [Sat, 17 Mar 2012 16:32:09 +0000 (17:32 +0100)]
A README change.

12 years agoCommunicate match stddev from the ratings table to the Monte Carlo simulation.
Steinar H. Gunderson [Sat, 17 Mar 2012 16:31:59 +0000 (17:31 +0100)]
Communicate match stddev from the ratings table to the Monte Carlo simulation.

12 years agoFix undefined behavior in the random generator.
Steinar H. Gunderson [Sat, 17 Mar 2012 16:15:41 +0000 (17:15 +0100)]
Fix undefined behavior in the random generator.

12 years agoImport the web frontend, picking out data from the database.
Steinar H. Gunderson [Sat, 17 Mar 2012 16:08:23 +0000 (17:08 +0100)]
Import the web frontend, picking out data from the database.

12 years agoAdd a Monte Carlo simulator.
Steinar H. Gunderson [Sat, 17 Mar 2012 13:38:25 +0000 (14:38 +0100)]
Add a Monte Carlo simulator.

12 years agoMake the base directory configurable.
Steinar H. Gunderson [Sat, 17 Mar 2012 13:29:52 +0000 (14:29 +0100)]
Make the base directory configurable.

12 years agoMake update_prior_sigma care about weight.
Steinar H. Gunderson [Sat, 17 Mar 2012 13:15:12 +0000 (14:15 +0100)]
Make update_prior_sigma care about weight.

12 years agoOptimize for the prior sigma, and stop renormalizing since the prior will take care...
Steinar H. Gunderson [Sat, 17 Mar 2012 13:10:40 +0000 (14:10 +0100)]
Optimize for the prior sigma, and stop renormalizing since the prior will take care of that.

12 years agoAdd a prior, to smooth out the mu a bit.
Steinar H. Gunderson [Sat, 17 Mar 2012 13:02:27 +0000 (14:02 +0100)]
Add a prior, to smooth out the mu a bit.

12 years agoSkip 0-150 and 150-0 matches for the purpose of the rating.
Steinar H. Gunderson [Sat, 17 Mar 2012 13:02:13 +0000 (14:02 +0100)]
Skip 0-150 and 150-0 matches for the purpose of the rating.

12 years agoProperly unlink the temporary file after training.
Steinar H. Gunderson [Sat, 17 Mar 2012 12:10:06 +0000 (13:10 +0100)]
Properly unlink the temporary file after training.

12 years agoAdd a script to sync all data from the master WLoH database.
Steinar H. Gunderson [Sat, 17 Mar 2012 12:09:30 +0000 (13:09 +0100)]
Add a script to sync all data from the master WLoH database.

12 years agoAdd a script to train the model.
Steinar H. Gunderson [Sat, 17 Mar 2012 12:07:33 +0000 (13:07 +0100)]
Add a script to train the model.

12 years agoMake the output more machine-friendly.
Steinar H. Gunderson [Sat, 17 Mar 2012 12:03:32 +0000 (13:03 +0100)]
Make the output more machine-friendly.

12 years agoDon't print out Hessian by default.
Steinar H. Gunderson [Sat, 17 Mar 2012 01:30:58 +0000 (02:30 +0100)]
Don't print out Hessian by default.

12 years agoTake weight into account in Hessian.
Steinar H. Gunderson [Sat, 17 Mar 2012 01:30:45 +0000 (02:30 +0100)]
Take weight into account in Hessian.

12 years agoCompute the Hessian instead of the Fisher information matrix. The numerics here suck.
Steinar H. Gunderson [Sat, 17 Mar 2012 01:29:41 +0000 (02:29 +0100)]
Compute the Hessian instead of the Fisher information matrix. The numerics here suck.

12 years agoOptimize global sigma.
Steinar H. Gunderson [Sat, 17 Mar 2012 00:12:59 +0000 (01:12 +0100)]
Optimize global sigma.

12 years agoAdd weight to all matches, and optimize mu based on it.
Steinar H. Gunderson [Fri, 16 Mar 2012 23:52:03 +0000 (00:52 +0100)]
Add weight to all matches, and optimize mu based on it.

12 years agoUse sum-of-squares instead absolute-single-greatest-change as metric for convergence.
Steinar H. Gunderson [Fri, 16 Mar 2012 23:31:49 +0000 (00:31 +0100)]
Use sum-of-squares instead absolute-single-greatest-change as metric for convergence.

12 years agosizeof() should be concrete variables when possible.
Steinar H. Gunderson [Fri, 16 Mar 2012 23:29:53 +0000 (00:29 +0100)]
sizeof() should be concrete variables when possible.

12 years agoIncrease the max number of iterations a bit.
Steinar H. Gunderson [Fri, 16 Mar 2012 23:29:17 +0000 (00:29 +0100)]
Increase the max number of iterations a bit.

12 years agoOnly dump scores once, at the very end.
Steinar H. Gunderson [Fri, 16 Mar 2012 23:28:49 +0000 (00:28 +0100)]
Only dump scores once, at the very end.

12 years agoMore sensible dumping.
Steinar H. Gunderson [Fri, 16 Mar 2012 23:26:42 +0000 (00:26 +0100)]
More sensible dumping.

12 years agoIncrease MAX_PLAYERS a lot.
Steinar H. Gunderson [Fri, 16 Mar 2012 23:24:36 +0000 (00:24 +0100)]
Increase MAX_PLAYERS a lot.

12 years agoInitial commit.
Steinar H. Gunderson [Fri, 16 Mar 2012 23:23:05 +0000 (00:23 +0100)]
Initial commit.