Tidy up new datasetfetcher logging
This commit is contained in:
parent
a2e4551b75
commit
45541db0fa
1 changed files with 8 additions and 7 deletions
|
@ -68,12 +68,15 @@ class DatasetFetcher {
|
||||||
}
|
}
|
||||||
shuffle_fisher_yates(result);
|
shuffle_fisher_yates(result);
|
||||||
|
|
||||||
console.error("*** Start ***");
|
|
||||||
if(this.settings.ai.do_zap_false_negatives) {
|
if(this.settings.ai.do_zap_false_negatives) {
|
||||||
console.error("Item count before zapping", result.length);
|
let zap_count_before = result.length,
|
||||||
let zap_count = this.zap_false_negatives(result, this.settings.ai.false_negative_zap_radius);
|
zap_count = this.zap_false_negatives(
|
||||||
console.error("Item count after zapping", result.length);
|
result,
|
||||||
this.l.log_e(`[DatasetFetcher] Zapped ${zap_count} false negatives with a radius of ${this.settings.ai.false_negative_zap_radius}m.`);
|
this.settings.ai.false_negative_zap_radius
|
||||||
|
),
|
||||||
|
zap_count_after = result.length;
|
||||||
|
|
||||||
|
this.l.log_e(`[DatasetFetcher] Zapped ${zap_count} false negatives with a radius of ${this.settings.ai.false_negative_zap_radius}m (${zap_count_before} -> ${zap_count_after} points).`);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(let item of result) {
|
for(let item of result) {
|
||||||
|
@ -82,8 +85,6 @@ class DatasetFetcher {
|
||||||
item.input.distance = normalise_gateway_distance(item.input.distance);
|
item.input.distance = normalise_gateway_distance(item.input.distance);
|
||||||
item.output[0] = normalise_rssi(item.output[0]);
|
item.output[0] = normalise_rssi(item.output[0]);
|
||||||
}
|
}
|
||||||
console.error("Item count after normalisation", result.length);
|
|
||||||
console.error("*** End ***");
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue