Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSE metric broken: squared parameter is deprecated #664

Open
joeranbosma opened this issue Feb 17, 2025 · 0 comments
Open

MSE metric broken: squared parameter is deprecated #664

joeranbosma opened this issue Feb 17, 2025 · 0 comments

Comments

@joeranbosma
Copy link

Using the MSE metric doesn't work with scikit-learn version >1.6.0 since the squared parameter is deprecated:

/home/joeran/repos/dragon_baseline/.venv/lib/python3.10/site-packages/sklearn/metrics/_regression.py:492: FutureWarning: 'squared' is deprecated in version 1.4 and will be removed in 1.6. To calculate the root mean squared error, use the function'root_mean_squared_error'.

(as confirmed here: https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/metrics/_regression.py#L510)

Code to reproduce:

pip install scikit-learn==1.6.2
import evaluate
metric = evaluate.load("mse")
metric.compute(predictions=(0,1,2), references=(1,2,3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant