1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-02 10:19:04 +00:00

rogueviz:: som:: removed qpct which was useless

This commit is contained in:
Zeno Rogue
2025-12-05 10:41:53 +01:00
parent 02ed6746a1
commit 61c1bf2b24
2 changed files with 0 additions and 9 deletions

View File

@@ -105,8 +105,6 @@ int tmax = 30000;
double distmul = 1;
double learning_factor = .1;
int qpct = 100;
int t, lpct, cells;
double maxdist;
@@ -1646,9 +1644,6 @@ int readArgs() {
gaussian = 2;
state &=~ KS_DISPERSION;
}
else if(argis("-sompct")) {
shift(); qpct = argi();
}
else if(argis("-sompower")) {
shift_arg_formula(ttpower);
}

View File

@@ -296,7 +296,6 @@ bool kst_key(int sym, int uni) {
else if((cmode & sm::NORMAL) && uni == 'r') {
set_neuron_initial();
t = tmax;
dynamicval ks(qpct, 0);
while(!finished()) kohonen::step();
println(hlog, "check result = ", check(true));
check_energy();
@@ -326,7 +325,6 @@ bool check(bool deb) {
dynamicval<bool> dd(debug_kohonen.enabled, false);
set_neuron_initial();
t = tmax;
dynamicval dp(qpct, 0);
while(!finished()) kohonen::step();
analyze();
int empty = 0, nonadj = 0, distant = 0;
@@ -440,7 +438,6 @@ void som_table() {
println(hlog, "suc ", best, " :\n", sucorder[best]);
for(int vv=10; vv>=0; vv--) {
dynamicval ks(qpct, 0);
t = vv ? tmax * vv / 10 : 1;
step();
println(hlog, "t=", t);
@@ -1043,7 +1040,6 @@ void all_pairs(bool one) {
}
t = tmax;
dynamicval ks(qpct, 0);
while(!finished()) kohonen::step();
for(int i=0; i<orig_samples; i++) {