Frontend update
This commit is contained in:
parent
310a27f385
commit
ad89f08846
@ -88,5 +88,9 @@
|
||||
</tr>
|
||||
</ng-template>
|
||||
</p-table>
|
||||
<br />
|
||||
<div>
|
||||
<p>Procent trafionych predykcji: {{ ((TP / matches.length) * 100).toFixed(2) }}%</p>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
@ -52,6 +52,7 @@ export class AppComponent implements OnInit {
|
||||
this.apiHelper.getJson(this.globalConfig.apiAdress + 'matches').subscribe(
|
||||
data => {
|
||||
this.matches = data;
|
||||
this.countStatistics();
|
||||
console.log(data);
|
||||
this.loading = false;
|
||||
},
|
||||
@ -92,6 +93,7 @@ export class AppComponent implements OnInit {
|
||||
this.countFMeasure();
|
||||
}
|
||||
|
||||
|
||||
countRMSE() {
|
||||
|
||||
}
|
||||
@ -101,9 +103,11 @@ export class AppComponent implements OnInit {
|
||||
}
|
||||
|
||||
countTPFPFN() {
|
||||
/*this.matches.forEach(x => {
|
||||
if
|
||||
});*/
|
||||
this.matches.forEach(x => {
|
||||
if (x.predictedResult === x.result) {
|
||||
this.TP += 1;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
countPrecision() {
|
||||
|
Loading…
Reference in New Issue
Block a user