# R2 in MLJ Machine Learning

**URL:** <https://discourse.julialang.org/t/r2-in-mlj-machine-learning/66310>\
**Category:** Community\
**Created:** [August 12, 2021, 11:06pm UTC](https://discourse.julialang.org/t/r2-in-mlj-machine-learning/66310 "2021-08-12T23:06:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![francesco\_renato\_urd](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/francesco_renato_urd/32/28134_2.png) [@francesco\_renato\_urd](https://discourse.julialang.org/u/francesco_renato_urd)\
**Post date:** [August 12, 2021, 11:06pm UTC](https://discourse.julialang.org/t/r2-in-mlj-machine-learning/66310/1 "2021-08-12T23:06:55Z")

</div>

Hello, I am new to Julia and I am trying to use MLJ, for machine learning work, however I see that this library does not have the R2 metric, does anyone know why? Hugs

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [August 12, 2021, 11:42pm UTC](https://discourse.julialang.org/t/r2-in-mlj-machine-learning/66310/2 "2021-08-12T23:42:17Z")

</div>

Hi, welcome to Julia.

Well it’s here: [Regression Metrics · Metrics.jl](https://juliahub.com/docs/Metrics/ieFta/0.1.0/regression/)

I’m not sure about MLJ, but while it seems to want to include everything under one umbrella, even from Python (where you have this), in Julia generally packages compose very well so there’s no need to have everything in one. Might that be the case here?

---

<div class="post-metadata">

**Author:** ![francesco\_renato\_urd](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/francesco_renato_urd/32/28134_2.png) [@francesco\_renato\_urd](https://discourse.julialang.org/u/francesco_renato_urd)\
**Post date:** [August 13, 2021, 3:15am UTC](https://discourse.julialang.org/t/r2-in-mlj-machine-learning/66310/3 "2021-08-13T03:15:56Z")

</div>

Thanks for your quick response. A hug

---

<div class="post-metadata">

**Author:** ![sidpku](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sidpku/32/45729_2.png) [@sidpku](https://discourse.julialang.org/u/sidpku)\
**Post date:** [August 25, 2023, 3:20pm UTC](https://discourse.julialang.org/t/r2-in-mlj-machine-learning/66310/4 "2023-08-25T15:20:31Z")

</div>

hi, i found the R square metric as a measure method in 2023.

You can find it like below

```julia
using MLJ
measure("RSquared")

# show info about it
info("RSqured")

```
