Skip to content

MSE, r_squared not working, QUICK FIX (squared argument is deprecated in call to scikit-learn) #663

@MatteBelle

Description

@MatteBelle

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions