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

sklearn.metrics.mean_squared_error and mean_squared_log_error are not deprecated #318

Closed
InSyncWithFoo opened this issue Oct 20, 2024 · 1 comment · Fixed by #319
Closed

Comments

@InSyncWithFoo
Copy link
Contributor

Only the squared parameter is deprecated (source, docs):

@validate_params(
    {
        "y_true": ["array-like"],
        "y_pred": ["array-like"],
        "sample_weight": ["array-like", None],
        "multioutput": [StrOptions({"raw_values", "uniform_average"}), "array-like"],
        "squared": [Hidden(StrOptions({"deprecated"})), "boolean"],
    },
    prefer_skip_nested_validation=True,
)
def mean_squared_error(
    y_true,
    y_pred,
    *,
    sample_weight=None,
    multioutput="uniform_average",
    squared="deprecated",
):

This was originally reported at this Stack Overflow question.

@debonte
Copy link
Contributor

debonte commented Oct 21, 2024

Sorry for the regression. I misunderstood what had been deprecated and mistakenly introduced this issue in #317.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants