]> git.sesse.net Git - wloh/log
wloh
11 years agoTrain one model (with its own aux parms) per locale.
Steinar H. Gunderson [Wed, 30 May 2012 19:48:10 +0000 (21:48 +0200)]
Train one model (with its own aux parms) per locale.

11 years agoLoad the covariance table before doing anything else, since that process can happen...
Steinar H. Gunderson [Wed, 30 May 2012 19:36:05 +0000 (21:36 +0200)]
Load the covariance table before doing anything else, since that process can happen without a lock on anything the frontend needs, which means we can block the frontend for shorter.

11 years agoStore the aux params in textual form in the database, instead of abusing the rating...
Steinar H. Gunderson [Wed, 30 May 2012 19:35:19 +0000 (21:35 +0200)]
Store the aux params in textual form in the database, instead of abusing the rating table.

11 years agoMake rating.pl use the common function for fetching aux parms.
Steinar H. Gunderson [Wed, 30 May 2012 19:32:34 +0000 (21:32 +0200)]
Make rating.pl use the common function for fetching aux parms.

11 years agoMove get_auxillary_parameters into wloh_common.
Steinar H. Gunderson [Wed, 30 May 2012 19:30:42 +0000 (21:30 +0200)]
Move get_auxillary_parameters into wloh_common.

11 years agoWhen fetching auxillary parameters, index them by meaningful names and not the databa...
Steinar H. Gunderson [Wed, 30 May 2012 19:17:02 +0000 (21:17 +0200)]
When fetching auxillary parameters, index them by meaningful names and not the database-internal numbers.

11 years agoSplit train.pl into functions.
Steinar H. Gunderson [Wed, 30 May 2012 19:06:44 +0000 (21:06 +0200)]
Split train.pl into functions.

11 years agoMake the display frontend filter out only the data relevant for the current locale.
Steinar H. Gunderson [Wed, 30 May 2012 18:52:54 +0000 (20:52 +0200)]
Make the display frontend filter out only the data relevant for the current locale.

11 years agoFix a reference to the variable in wrong scope.
Steinar H. Gunderson [Wed, 30 May 2012 18:50:26 +0000 (20:50 +0200)]
Fix a reference to the variable in wrong scope.

11 years agoFix average rating calculations when people have unknown ratings.
Steinar H. Gunderson [Wed, 30 May 2012 18:50:07 +0000 (20:50 +0200)]
Fix average rating calculations when people have unknown ratings.

11 years agoAdd a function to fish out the locale from the URL.
Steinar H. Gunderson [Wed, 30 May 2012 18:24:20 +0000 (20:24 +0200)]
Add a function to fish out the locale from the URL.

11 years agoMake lnnks relative, in preparation for multi-language support.
Steinar H. Gunderson [Wed, 30 May 2012 18:19:51 +0000 (20:19 +0200)]
Make lnnks relative, in preparation for multi-language support.

12 years agoTurn tempfile cleanup back on.
Steinar H. Gunderson [Tue, 24 Apr 2012 21:10:54 +0000 (23:10 +0200)]
Turn tempfile cleanup back on.

12 years agoShow average ratings for each subdivision.
Steinar H. Gunderson [Mon, 23 Apr 2012 22:55:06 +0000 (00:55 +0200)]
Show average ratings for each subdivision.

12 years agoWhen making division ranking, only include the players that are active in the current...
Steinar H. Gunderson [Mon, 23 Apr 2012 22:43:46 +0000 (00:43 +0200)]
When making division ranking, only include the players that are active in the current season.

12 years agoMove get_max_season() into the common package.
Steinar H. Gunderson [Mon, 23 Apr 2012 22:41:31 +0000 (00:41 +0200)]
Move get_max_season() into the common package.

12 years agoFix scenario showing in Firefox.
Steinar H. Gunderson [Mon, 23 Apr 2012 21:00:21 +0000 (23:00 +0200)]
Fix scenario showing in Firefox.

12 years agoMinor JavaScript refactoring.
Steinar H. Gunderson [Mon, 23 Apr 2012 20:59:14 +0000 (22:59 +0200)]
Minor JavaScript refactoring.

12 years agoIgnore 0-0 games.
Steinar H. Gunderson [Wed, 18 Apr 2012 21:40:04 +0000 (23:40 +0200)]
Ignore 0-0 games.

12 years agoProperly handle the fact that score X-0 is different from X-(-X). Urg, bad bug.
Steinar H. Gunderson [Sun, 25 Mar 2012 19:13:30 +0000 (21:13 +0200)]
Properly handle the fact that score X-0 is different from X-(-X). Urg, bad bug.

12 years agoDo not show links by obvious results.
Steinar H. Gunderson [Sun, 25 Mar 2012 17:54:09 +0000 (19:54 +0200)]
Do not show links by obvious results.

12 years agoMake the scenario box a bit larger.
Steinar H. Gunderson [Sun, 25 Mar 2012 17:49:28 +0000 (19:49 +0200)]
Make the scenario box a bit larger.

12 years agoAdd a friendly header to the scenario analysis.
Steinar H. Gunderson [Sun, 25 Mar 2012 17:33:50 +0000 (19:33 +0200)]
Add a friendly header to the scenario analysis.

12 years agoSort players when writing them to file, to be consistent with the ordering the JavaSc...
Steinar H. Gunderson [Sun, 25 Mar 2012 17:28:02 +0000 (19:28 +0200)]
Sort players when writing them to file, to be consistent with the ordering the JavaScript sees.

12 years agoAdd clickable fun to the probability matrix.
Steinar H. Gunderson [Sun, 25 Mar 2012 17:22:14 +0000 (19:22 +0200)]
Add clickable fun to the probability matrix.

12 years agoMake rudimentary HTML output for scenario analysis.
Steinar H. Gunderson [Sun, 25 Mar 2012 16:13:14 +0000 (18:13 +0200)]
Make rudimentary HTML output for scenario analysis.

12 years agoFix a scoping bug.
Steinar H. Gunderson [Sun, 25 Mar 2012 16:05:32 +0000 (18:05 +0200)]
Fix a scoping bug.

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.