Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC Ensures that mean_variance_axis passes numpydoc validation #24177

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
Aug 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion sklearn/tests/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"sklearn.utils.sparsefuncs.inplace_swap_row",
"sklearn.utils.sparsefuncs.inplace_swap_row_csc",
"sklearn.utils.sparsefuncs.inplace_swap_row_csr",
"sklearn.utils.sparsefuncs.mean_variance_axis",
"sklearn.utils.validation.check_is_fitted",
]
FUNCTION_DOCSTRING_IGNORE_LIST = set(FUNCTION_DOCSTRING_IGNORE_LIST)
Expand Down
2 changes: 1 addition & 1 deletion sklearn/utils/sparsefuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def mean_variance_axis(X, axis, weights=None, return_sum_weights=False):
Axis along which the axis should be computed.

weights : ndarray of shape (n_samples,) or (n_features,), default=None
if axis is set to 0 shape is (n_samples,) or
If axis is set to 0 shape is (n_samples,) or
if axis is set to 1 shape is (n_features,).
If it is set to None, then samples are equally weighted.

Expand Down