X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bayeswf.cpp;h=cc591832a556f023ea6aa364a44ce5422a0b0740;hb=1fac0677bbcba5dec26e11aa661c97e38f6c3d40;hp=f94b1d33f6e213f281fc308ad111ab06a69778ac;hpb=c5cf5cb78785bfd57ea74b23d72ce4e27439ee2f;p=wloh diff --git a/bayeswf.cpp b/bayeswf.cpp index f94b1d3..cc59183 100644 --- a/bayeswf.cpp +++ b/bayeswf.cpp @@ -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 }