Skip to content

MLstatkit v0.1.9

Choose a tag to compare

@Brritany Brritany released this 23 Aug 11:11
· 3 commits to main since this release

MLstatkit v0.1.9

Highlights

  • 🔧 Refactor & modularization

    • Split stats.py into dedicated modules:
      • ci.py (Bootstrapping)
      • conversions.py (AUC2OR)
      • delong.py (DeLong’s test)
      • metrics.py (get_metric_fn)
      • permutation.py (Permutation test)
    • Unified import interface (e.g., from MLstatkit import Delong_test).
  • 🛠️ Functions restored

    • Bootstrapping, Permutation_test, AUC2OR re-integrated after refactor.
    • Maintained backward compatibility with from MLstatkit.stats import ... (with deprecation warning).
  • 📈 AUC2OR improvements

    • Updated to use binormal model with exact norm.ppf.
    • More accurate than polynomial approximation in older versions.
    • Supports return_all=True for intermediate values (z, d, ln_or, OR).
  • ✅ Testing

    • Added dedicated tests/ for all core functions (16 tests total, all passed).
    • Warnings confirmed for edge cases (UndefinedMetricWarning in sklearn, deprecation warning for stats.py).
  • 📖 Documentation

    • Updated README.md with clearer installation, usage examples, and mathematical formulas (LaTeX rendering).
    • Added update log, references, and deprecation notes.

Migration notes

  • Prefer new imports:
    from MLstatkit import Delong_test, Bootstrapping, Permutation_test, AUC2OR

Old path from MLstatkit.stats import ... still works in v0.1.9, but will be removed in v0.2.0.

PyPI: https://pypi.org/project/MLstatkit/0.1.9/

Docs: https://github.com/Brritany/MLstatkit#readme