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

Add stubs for RMSE and RMSLE in sklearn.metrics #317

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

einarwar
Copy link
Contributor

Updates sklearn.metrics stubs with changes introduced in v1.4 in scikit-learn/scikit-learn#26734

Originally wanted to mark old function parameters are deprecated, but i guess that isn't possible until PEP702

Related issue from pylance: microsoft/pylance-release#6410

@einarwar einarwar changed the title Add RMSE and RMSLE Add stubs for RMSE and RMSLE in sklearn.metrics Sep 18, 2024
@einarwar
Copy link
Contributor Author

@microsoft-github-policy-service agree

@debonte
Copy link
Contributor

debonte commented Sep 19, 2024

Originally wanted to mark old function parameters are deprecated, but i guess that isn't possible until PEP702

That sounds good to me! deprecated() is available to Python 3.12 and below via the typing_extensions module. See https://peps.python.org/pep-0702/#backwards-compatibility.

I took the liberty of making this change in your branch.

@debonte debonte merged commit 8af9287 into microsoft:main Sep 19, 2024
3 checks passed
@debonte
Copy link
Contributor

debonte commented Sep 19, 2024

Thanks for your contribution @einarwar!

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 this pull request may close these issues.

2 participants