Skip to content

Commit

Permalink
fix(#1045): calculate overall precision from overall correct/incorrec…
Browse files Browse the repository at this point in the history
…t in rules (#1086)

(cherry picked from commit 05ff096)

- fix(#1045): fix overall precision (#1087)

(cherry picked from commit 451af37)
  • Loading branch information
leiyre authored and frascuchon committed Feb 2, 2022
1 parent 4c740da commit 1c76d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/models/TextClassification.js
Expand Up @@ -175,7 +175,7 @@ class TextClassificationDataset extends ObservationDataset {
}
),
};
overalMetrics.precisionAverage /= rulesMetrics.length;
overalMetrics.precisionAverage = overalMetrics.totalCorrects / (overalMetrics.totalCorrects + overalMetrics.totalIncorrects);
}

return overalMetrics;
Expand Down

0 comments on commit 1c76d81

Please sign in to comment.