From 1e07875d054a876eb370b1eddef6812ad2d1cfe7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 1 Mar 2022 08:44:59 +0100 Subject: [PATCH] rv:: kohonen:: removed debug --- rogueviz/kohonen.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/rogueviz/kohonen.cpp b/rogueviz/kohonen.cpp index cc136a44..f45f5ed7 100644 --- a/rogueviz/kohonen.cpp +++ b/rogueviz/kohonen.cpp @@ -650,7 +650,6 @@ void step() { tt = pow(tt, ttpower); double sigma = maxdist * tt; - int dispid = int(dispersion_count * tt); if(qpct) { int pct = (int) ((qpct * (t+.0)) / tmax); @@ -658,12 +657,12 @@ void step() { lpct = pct; analyze(); - if(gaussian) - println(hlog, format("t = %6d/%6d %3d%% sigma=%10.7lf maxudist=%10.7lf\n", t, tmax, pct, sigma, maxudist)); - else - println(hlog, format("t = %6d/%6d %3d%% dispid=%5d maxudist=%10.7lf\n", t, tmax, pct, dispid, maxudist)); - } - } +// if(gaussian) +// println(hlog, format("t = %6d/%6d %3d%% sigma=%10.7lf maxudist=%10.7lf\n", t, tmax, pct, sigma, maxudist)); +// else +// println(hlog, format("t = %6d/%6d %3d%% dispid=%5d maxudist=%10.7lf\n", t, tmax, pct, dispid, maxudist)); +// } + } // int id = hrand(samples); neuron& n = winner(id); whowon.resize(samples);