Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ENH Checks n_features_in in semi_supervised #18742

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 4 commits into from
Jan 26, 2021
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
7 changes: 4 additions & 3 deletions 7 sklearn/semi_supervised/_label_propagation.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
from ..neighbors import NearestNeighbors
from ..utils.extmath import safe_sparse_dot
from ..utils.multiclass import check_classification_targets
from ..utils.validation import check_is_fitted, check_array
from ..utils.validation import check_is_fitted
from ..utils.validation import _deprecate_positional_args
from ..exceptions import ConvergenceWarning

Expand Down Expand Up @@ -190,8 +190,9 @@ class labels.
"""
check_is_fitted(self)

X_2d = check_array(X, accept_sparse=['csc', 'csr', 'coo', 'dok',
'bsr', 'lil', 'dia'])
X_2d = self._validate_data(
X, accept_sparse=['csc', 'csr', 'coo', 'dok', 'bsr', 'lil', 'dia'],
reset=False)
weight_matrices = self._get_kernel(self.X_, X_2d)
if self.kernel == 'knn':
probabilities = np.array([
Expand Down
1 change: 0 additions & 1 deletion 1 sklearn/tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ def test_search_cv(estimator, check, request):
'neighbors',
'pipeline',
'random_projection',
'semi_supervised',
}

N_FEATURES_IN_AFTER_FIT_ESTIMATORS = [
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.