-
-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Registering neg_root_mean_squared_log_error
in sklearn.metrics.SCORERS
#20908
Comments
I think that it makes sense. It should follow the other pattern and potentially add a test if there is not an already common test. |
I couldn't find the code where
|
As you mentioned it is not defined. So you can create a PR to create the scorer. So as I mentioned, you can use the same pattern than other scorer, something like: neg_root_mean_squared_error = make_scorer(mean_squared_error, greater_is_better=False, squared=False) For the test, I checked and you will need to add the |
Sorry, this has been implemented already, I had closed this issue now . |
Describe the workflow you want to enable
As I had added
root_mean_squared_log_error
previously in #20326 . Now I want to register the same insklearn.metrics.scorers
. You can see #20326 (review) for better understanding.Describe your proposed solution
The solution is to add a parameter named
squared
which will be false by default and when it'll be set to true then the function will returnroot
ofmean_squared_log_error
.Describe alternatives you've considered, if relevant
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: