~/talk

Get the best from your scikit-learn classifier

Talkat PyData Global 2023 · 2023-12-06..12-08· [machine-learning, testing]
slides:none on file

Scikit-learn adds a meta-estimator that fits classifiers for calibrated probabilities then tunes the decision threshold to directly maximize the chosen metric (including business cost matrices), rather than relying on the default 0.5 cutoff or blind resampling. The workflow emphasizes using optimize log loss (proper scoring rule) during hyperparameter search, recalibrating if needed, and then selecting the threshold that yields the best hard decisions; experiments show tuned thresholds plus proper scoring match or beat naive resampling. See PR: https://github.com/scikit-learn/scikit-learn/pull/26120.

AI-written summary · about

  1. 0:00Imbalanced data challenges
  2. 3:13Why resampling is not a magical solution
  3. 7:13Calibration after resampling
  4. 12:35Hyperparameter tuning
  5. 16:28Metadata routing for metrics
  6. 20:39Key takeaways
  7. 22:02Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.