# \[ANN\] Two new packages for metrics in statistics and ML

**URL:** <https://discourse.julialang.org/t/ann-two-new-packages-for-metrics-in-statistics-and-ml/104374>\
**Category:** Package Announcements\
**Tags:** machine-learning, mlj\
**Created:** [September 29, 2023, 2:00am UTC](https://discourse.julialang.org/t/ann-two-new-packages-for-metrics-in-statistics-and-ml/104374 "2023-09-29T02:00:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ablaom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ablaom/32/4889_2.png) [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Post date:** [September 29, 2023, 2:00am UTC](https://discourse.julialang.org/t/ann-two-new-packages-for-metrics-in-statistics-and-ml/104374/1 "2023-09-29T02:00:05Z")

</div>

I am pleased to announce two new packages for measures (aka metrics) for statistics and machine learning:

### Build complex measures with StatisticalMeasuresBase.jl

Use [StatisticalMeasuresBase.jl](https://github.com/JuliaAI/StatisticalMeasuresBase.jl) to quickly build production-ready measures out of simpler functions. See [here](https://github.com/JuliaAI/StatisticalMeasuresBase.jl#the-main-idea) for the basic idea.

### Or grab a ready-to-use measure from StatisticalMeasures.jl

[StatisticalMeasures.jl](https://github.com/JuliaAI/StatisticalMeasures.jl/tree/dev) provides a **[large library](https://juliaai.github.io/StatisticalMeasures.jl/dev/auto_generated_list_of_measures/#aliases)** of measures satisfying the simple [API](https://juliaai.github.io/StatisticalMeasuresBase.jl/dev/implementing_new_measures/#definitions) defined in StatisticalMeasuresBase.jl. These measures are ready to use with the popular machine learning framework [MLJ.jl](https://alan-turing-institute.github.io/MLJ.jl/dev/) (version ≥ 0.12) which previously provided many of the measures natively. (MLJ users, see also this migration guide.) Measures include **confusion matrices** , new **multi-target measures** for time series. A **receiver operator characteristic** tool is included.

**[List of related packages](https://github.com/FluxML/FluxML-Community-Call-Minutes/discussions/38).**

**History and acknowledgments.** These packages grew out of the library of measures previously part of MLJBase.jl. We created the new packages to encourage wider application, and to make growing the library easier. While the API has been redesigned, the core functionality can be considered well-tested and mature.

I acknowledge contributions to the original code base from the following people (GitHub handles): Thibaut Lienart (@tlienart), Venkateshprasad (@ven-k), Samuel Okon (@OkonSamuel), Rik  
Huijzer (@rikhuijzer), Mose Giordano (@giordano), Cameron Biegnek (@CameronBieganek),  
David Muhr (@davnn), Albert Alex Zevelev (@azev).

---

<div class="post-metadata">

**Author:** ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Post date:** [October 5, 2023, 4:47pm UTC](https://discourse.julialang.org/t/ann-two-new-packages-for-metrics-in-statistics-and-ml/104374/2 "2023-10-05T16:47:09Z")

</div>

Awesome 🕶 I’ve been wanting a lightweight package like this with only statistical measures. Great work!
