datalets v0.5.1 — automated imbalance handling
class_weight="balanced" (sklearn-style, also accepts a dict): automated imbalance handling without resampling — inverse-frequency weights flow through candidate fitting, cross-fitted threshold tuning, scoring and reports.
Two automated operating modes for imbalanced data, benchmarked (german credit 30%, adult 25%, covtype 0.4% positives vs HistGB ± balanced and XGBoost scale_pos_weight):
- plain (per-cluster thresholds only) — F1-first: wins on heterogeneous german credit, parity with tuned boosters elsewhere;
class_weight="balanced"— recall-first: 97% recall and ROC-AUC 0.999 at 0.4% positives.
Quickstarts now lead with the fully automatic configuration (clusterer="auto", class_weight="balanced"). 483 tests. Full table in DOCUMENTATION.md.