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, r_squared not working, QUICK FIX (squared argument is deprecated in call to scikit-learn) #663

Closed
MatteBelle opened this issue Feb 6, 2025 · 2 comments · May be fixed by #662
Closed

Comments

@MatteBelle
Copy link

MatteBelle commented Feb 6, 2025

https://scikit-learn.org/1.5/modules/generated/sklearn.metrics.mean_squared_error.html

At this link it's reported.
Hence, I suggest you change the call in your wrapping function to "root_mean_squared_error" in case "squared" was set to true.

Errors:

  1. Error evaluating r_squared: r_squared._compute() got an unexpected keyword argument 'squared'
  2. Error evaluating mse: mse._compute() got an unexpected keyword argument 'squared'
@MatteBelle MatteBelle changed the title MSE not working, QUICK FIX (squared argument is deprecated in call to scikit-learn) MSE, r_squared not working, QUICK FIX (squared argument is deprecated in call to scikit-learn) Feb 6, 2025
@JohnGiorgi
Copy link

JohnGiorgi commented Feb 6, 2025

Huh, funny coincidence but I think I just did this: #662. I'll link this issue to that PR!

@MatteBelle
Copy link
Author

MatteBelle commented Feb 6, 2025

Damn, what a timing then ahaha!
Are you working on this repo? I wonder if I could've linked it too somehow.

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

Successfully merging a pull request may close this issue.

2 participants