# Package for precision / recall?

**URL:** <https://discourse.julialang.org/t/package-for-precision-recall/29868>\
**Category:** Machine Learning\
**Created:** [October 13, 2019, 5:41pm UTC](https://discourse.julialang.org/t/package-for-precision-recall/29868 "2019-10-13T17:41:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpratland](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mpratland/32/10796_2.png) [@mpratland](https://discourse.julialang.org/u/mpratland)\
**Post date:** [October 13, 2019, 5:41pm UTC](https://discourse.julialang.org/t/package-for-precision-recall/29868/1 "2019-10-13T17:41:18Z")

</div>

I’m slowly moving all my personal projects and ML hacking over to Julia, so I’m trying to find substitutes for packages that I’m used to. On in particular I’m heavily dependent on is Python’s `scikit-learn`, and in particular I’m dependent on the calculations for things like precision, recall, f-score, etc. for both regression and classification problems.

Is there a JuliaML / JuliaStats / Flux implementation of these that I should be using?

---

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [October 13, 2019, 6:59pm UTC](https://discourse.julialang.org/t/package-for-precision-recall/29868/2 "2019-10-13T18:59:40Z")

</div>

My package has a way of handling this. Don’t know if I’ve tested all the validation metrics, but yea, it takes a one hot or one cold encoding and returns a big dictionary of metrics,

[https://caseykneale.github.io/ChemometricsTools.jl/dev/man/classMetrics/](https://caseykneale.github.io/ChemometricsTools.jl/dev/man/classMetrics/)  
[https://caseykneale.github.io/ChemometricsTools.jl/dev/man/regressMetrics/](https://caseykneale.github.io/ChemometricsTools.jl/dev/man/regressMetrics/)

Example usages:  
[https://github.com/caseykneale/ChemometricsTools.jl/blob/master/shootouts/ClassificationShootout.jl](https://github.com/caseykneale/ChemometricsTools.jl/blob/master/shootouts/ClassificationShootout.jl)  
[https://github.com/caseykneale/ChemometricsTools.jl/blob/master/shootouts/RegressionShootout.jl](https://github.com/caseykneale/ChemometricsTools.jl/blob/master/shootouts/RegressionShootout.jl)

---

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [October 13, 2019, 7:07pm UTC](https://discourse.julialang.org/t/package-for-precision-recall/29868/3 "2019-10-13T19:07:33Z")

</div>

Guess I should have asked, are you working in computer vision? If so those are implemented differently. I could help with that if you need it.

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [October 14, 2019, 12:30am UTC](https://discourse.julialang.org/t/package-for-precision-recall/29868/4 "2019-10-14T00:30:37Z")

</div>

Try MLBase.jl  
[https://mlbasejl.readthedocs.io/en/latest/perfeval.html](https://mlbasejl.readthedocs.io/en/latest/perfeval.html)

---

<div class="post-metadata">

**Author:** ![anon92994695](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Post date:** [October 14, 2019, 11:05am UTC](https://discourse.julialang.org/t/package-for-precision-recall/29868/5 "2019-10-14T11:05:26Z")

</div>

Looks like they’ve come quite a long ways. I remember when I made my package there was nothing.
