R2 in MLJ Machine Learning

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

Hi, welcome to Julia.

Well it’s here: Regression Metrics · Metrics.jl

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?

Thanks for your quick response. A hug

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

You can find it like below

using MLJ
measure("RSquared")

# show info about it
info("RSqured")