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

Fix sklearn deprecation warning for parameter squared of function mean_squared_error #114

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

anton-golubkov
Copy link
Contributor

Calling mean_squared_error(..., squared=False) shows deprecation warning in sckit-learn 1.4:
Deprecated since version 1.4: squared is deprecated in 1.4 and will be removed in 1.6. Use [root_mean_squared_error] instead to calculate the root mean squared error.

This commit replaces mean_squared_error with root_mean_squared_error to fix this warning.

…n_squared_error

Replace mean_squared_error(..., squared=False) with root_mean_squared_error
@jrzkaminski
Copy link
Collaborator

A decent improvement, thank you, I'll merge it asap after tests pass

@jrzkaminski jrzkaminski merged commit 938753c into aimclub:master Oct 11, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants