{"entity":{"id":"accuracy-f1","kind":"term","name":"Accuracy, macro-F1 and confusion matrices","aka":["accuracy metric","macro-F1","macro F1","F1 score","F-score","F-measure","confusion matrix","balanced accuracy","classification accuracy"],"tldr":"Accuracy is the share of predictions that were right; macro-F1 averages the F1 score of each class equally, so a model cannot look good by getting only the common cancer types right.","summary":"The F-score is a measure of predictive performance for binary classification calculated from precision and recall (Wikipedia). For a multi-class task such as cancer-type prediction, macro-F1 averages per-class F1 with equal weight, which exposes failures on rare classes that overall accuracy hides; a confusion matrix shows which classes are mixed up, often tissues of shared origin. Accuracy on a task saturated by an easy signal (tissue identity) leaves no room to show a new modality helps, a ceiling effect.","asOf":"2026-09-24","wikipedia":"https://en.wikipedia.org/wiki/F-score","links":[{"label":"Wikipedia: accuracy and precision","url":"https://en.wikipedia.org/wiki/Accuracy_and_precision"},{"label":"Wikipedia","url":"https://en.wikipedia.org/wiki/F-score"}],"tags":["cansim-terms"],"related":["cancer-ai-vocabulary"],"cancers":[],"sections":[],"technologies":[],"targets":[],"drugs":[],"companies":[],"institutions":[],"pathways":[],"terms":["roc-auc","ablation-study","organ-of-origin-signal"],"trials":[],"people":[],"bottlenecks":[],"keyPapers":[],"journals":[],"dependsOn":[],"notes":["Listed in the CanSim terms map 1.0.0 (docs/onco/terms.json, generated 2026-09-24), CC BY 4.0, attribution: CanSim project, an open, public-data-first cancer foundation-model programme; CanSim page path /terms/accuracy-macro-f1."],"provenance":{"editedBy":"OnCo CanSim terms wave (Wikipedia summaries, standards and project pages, GDC and FDA pages, Europe PMC)","editedOn":"2026-09-24","note":"CanSim terms map 1.0.0 (docs/onco/terms.json, generated 2026-09-24), CC BY 4.0, attribution: CanSim project, an open, public-data-first cancer foundation-model programme"},"category":"Methods and models"},"route":"/terms/accuracy-f1/","neighbours":{"term":[{"id":"ablation-study","kind":"term","name":"Ablation study and multi-task heads","route":"/terms/ablation-study/"},{"id":"cancer-ai-vocabulary","kind":"term","name":"Cancer AI vocabulary (CanSim terms map)","route":"/terms/cancer-ai-vocabulary/"},{"id":"roc-auc","kind":"term","name":"ROC-AUC, PR-AUC and time-dependent AUC","route":"/terms/roc-auc/"},{"id":"organ-of-origin-signal","kind":"term","name":"Tissue-of-origin signal in tumour data","route":"/terms/organ-of-origin-signal/"}]}}