8000 DOC fix docstring of EllipticEnvelope.fit by Ben3940 · Pull Request #22997 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC fix docstring of EllipticEnvelope.fit #22997

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 3 commits into from
Mar 30, 2022
Merged

DOC fix docstring of EllipticEnvelope.fit #22997

merged 3 commits into from
Mar 30, 2022

Conversation

Ben3940
Copy link
Contributor
@Ben3940 Ben3940 commented Mar 30, 2022

This commit updates the fit(X, y) definition, in the docs, of the sklearn.covariance.EllipticEnvelope class. The original definition stated that parameter X could be of type 'array-like' or 'sparse matrix', however, an error would be thrown if a 'sparse matrix' is passed (TypeError: A sparse matrix was passed, but dense data is required.). To resolve this, 'sparse matrix' was removed from the list of types X could be, in the docstring.

Fixes #14613

Ben3940 added 2 commits March 30, 2022 09:23
This commit updates the fit(X, y) definition, in the docs, of the sklearn.covariance.EllipticEnvelope class.
The original definition stated that parameter X could be of type 'array-like' or 'sparse matrix', however,
an error would be thrown if a 'sparse matrix' is passed ("TypeError: A sparse matrix was passed, but dense
data is required.").  To resolve this, 'sparse matrix' was removed from the list of types X could be, in the
docstring.
This commit is part of the process to update the docs on the sklearn.covariance.EllipticEnvelope class's
fit(X, y) definition, as explained in issue #14613.
Copy link
Member
@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @Ben3940.

@jeremiedbb jeremiedbb changed the title Resolves issue#14613 DOC fix docstring of EllipticEnvelope.fit Mar 30, 2022
@jeremiedbb jeremiedbb added Documentation Quick Review For PRs that are quick to review labels Mar 30, 2022
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
@jeremiedbb jeremiedbb merged commit c04703e into scikit-learn:main Mar 30, 2022
@jeremiedbb
Copy link
Member

Thanks @Ben3940

glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Apr 6, 2022
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Apr 29, 2022
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EllipticEnvelope does not work with a sparse matrix
2 participants
0