What is a minimal, defensible baseline for an imbalanced supervised classification task?

Last updated 14 November 2026

  • Anchor with a DummyClassifier: it shows accuracy is misleading, and the positive rate is the PR-AUC bar to beat.

  • Then fit a scaled logistic regression with class_weight='balanced', evaluated with StratifiedKFold on PR-AUC, precision and recall rather than accuracy.

  • Tune the decision threshold on validation data using false positive vs false negative costs, and check calibration if probabilities are used.

  • https://scikit-learn.org/stable/modules/generated/sklearn.dummy.DummyClassifier.html
  • https://inria.github.io/scikit-learn-mooc/python_scripts/cross_validation_sol_02.html
  • https://www.geeksforgeeks.org/machine-learning/ml-dummy-classifiers-using-sklearn/
All Supervised Learning interview questions