]> git.sesse.net Git - wloh/blobdiff - bayeswf.cpp
Pick old results from fotballresultater_2123.
[wloh] / bayeswf.cpp
index f94b1d33f6e213f281fc308ad111ab06a69778ac..cc591832a556f023ea6aa364a44ce5422a0b0740 100644 (file)
@@ -13,7 +13,7 @@
 using namespace std;
 using namespace Eigen;
 
-#define PRIOR_MU 1500
+#define PRIOR_MU 500
 #define PRIOR_WEIGHT 1.0
 #define MAX_PLAYERS 4096
 #define DUMP_RAW 0
@@ -340,7 +340,7 @@ int main(int argc, char **argv)
                sumdiff += (global_sigma - old_global_sigma) * (global_sigma - old_global_sigma);
                if (sumdiff < EPSILON) {
                        //fprintf(stderr, "Converged after %d iterations. Stopping.\n", j);
-                       printf("%d 0 -1\n", j + 1);
+                       printf("aux_param num_iterations %d\n", j + 1);
                        break;
                }
        }
@@ -352,10 +352,10 @@ int main(int argc, char **argv)
        compute_mu_uncertainty(mu, players);
        dump_scores(players, mu, mu_stddev, num_players);
        //fprintf(stderr, "Optimal sigma: %f (two-player: %f)\n", sigma[0], sigma[0] * sqrt(2.0f));
-       printf("%f 0 -2\n", global_sigma / sqrt(2.0f));
-       printf("%f 0 -3\n", prior_sigma);
+       printf("aux_param score_stddev %f\n", global_sigma / sqrt(2.0f));
+       printf("aux_param rating_prior_stddev %f\n", prior_sigma);
 
        float total_logl = compute_total_logl(mu, num_players);
-       printf("%f 0 -4\n", total_logl);
+       printf("aux_param total_log_likelihood %f\n", total_logl);
 #endif
 }