Skip to content
< all work

Earlier work · Joint project · 2022

Breast cancer risk prediction with classical models

A comparison of logistic regression, a decision tree and a random forest for predicting malignant versus benign tumours on a public Kaggle dataset.

machine-learningpython

The random forest scored best, at 96.491% accuracy on the held-out test split.

Role
Data scientist
Stack
Python · Jupyter · scikit-learn · pandas · NumPy · Matplotlib
Links
Code >

We trained three models on a breast cancer dataset from Kaggle and compared them on the same test split. The random forest came out ahead of logistic regression and the single decision tree, at 96.491% accuracy.

Looking back, accuracy on one split was the wrong headline for a medical question. Today I would report recall on the malignant class, use cross-validation, and check whether the predicted probabilities are calibrated.