Skip to content

Update kernels.py #21156

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

Merged
merged 1 commit into from
Sep 27, 2021
Merged

Update kernels.py #21156

merged 1 commit into from
Sep 27, 2021

Conversation

zhaofeng-shu33
Copy link
Contributor

Reference Issues/PRs

What does this implement/fix? Explain your changes.

fix example class reference error

Any other comments?

@@ -1821,7 +1821,7 @@ class RationalQuadratic(StationaryKernelMixin, NormalizedKernelMixin, Kernel):
--------
>>> from sklearn.datasets import load_iris
>>> from sklearn.gaussian_process import GaussianProcessClassifier
>>> from sklearn.gaussian_process.kernels import Matern
>>> from sklearn.gaussian_process.kernels import RationalQuadratic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really get how the CI did not catch this issue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything that is imported in the module is available in the test, Python doc reference.

Opened #21186 to actually check the examples correctly in tests.

@glemaitre glemaitre merged commit 20d5eaf into scikit-learn:main Sep 27, 2021
@glemaitre
Copy link
Member

Thanks @zhaofeng-shu33

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

Successfully merging this pull request may close these issues.

3 participants