Tidy up new datasetfetcher logging

This commit is contained in:
Starbeamrainbowlabs 2019-08-02 14:04:34 +01:00
parent a2e4551b75
commit 45541db0fa
1 changed files with 8 additions and 7 deletions

View File

@ -68,12 +68,15 @@ class DatasetFetcher {
}
shuffle_fisher_yates(result);
console.error("*** Start ***");
if(this.settings.ai.do_zap_false_negatives) {
console.error("Item count before zapping", result.length);
let zap_count = this.zap_false_negatives(result, this.settings.ai.false_negative_zap_radius);
console.error("Item count after zapping", result.length);
this.l.log_e(`[DatasetFetcher] Zapped ${zap_count} false negatives with a radius of ${this.settings.ai.false_negative_zap_radius}m.`);
let zap_count_before = result.length,
zap_count = this.zap_false_negatives(
result,
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) {
@ -82,8 +85,6 @@ class DatasetFetcher {
item.input.distance = normalise_gateway_distance(item.input.distance);
item.output[0] = normalise_rssi(item.output[0]);
}
console.error("Item count after normalisation", result.length);
console.error("*** End ***");
return result;
}