8000 [MRG + 1] MAINT: Return self for fit in Spectral Biclustering and CoClustering by maniteja123 · Pull Request #7814 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG + 1] MAINT: Return self for fit in Spectral Biclustering and CoClustering #7814

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 2 commits into from
Nov 3, 2016

Conversation

maniteja123
Copy link
Contributor

Regarding gh-6126

Fix fit method to return self for SpectralBiclustering and SpectralCoclustering, but the common tests still skip the bicluster classes.

This is a temporary fix for 0.18.1 and will try to make the common tests as part of gh-6141.

"""
X = check_array(X, accept_sparse='csr', dtype=np.float64)
self._check_parameters()
self._fit(X)
return self._fit(X)
Copy link
Member

Choose a reason for hiding this comment

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

simply return self and don't touch self._fit(X)?

@raghavrv raghavrv changed the title [MRG] MAINT: Return self for fit in Spectral Biclustering and CoClustering [MRG + 1] MAINT: Return self for fit in Spectral Biclustering and CoClustering Nov 3, 2016
@raghavrv
Copy link
Member
raghavrv commented Nov 3, 2016

Besides LGTM.

@maniteja123
Copy link
Contributor Author

Thanks for the review @raghavrv . It now returns self in fit itself. Hope it is fine now.

@jnothman jnothman merged commit bd911ec into scikit-learn:master Nov 3, 2016
@jnothman
Copy link
Member
jnothman commented Nov 3, 2016

Thanks @maniteja123

@raghavrv raghavrv added this to the 0.18.1 milestone Nov 3, 2016
@raghavrv raghavrv added the Bug label Nov 3, 2016
amueller pushed a commit to amueller/scikit-learn that referenced this pull request Nov 9, 2016
sergeyf pushed a commit to sergeyf/scikit-learn that referenced this pull request Feb 28, 2017
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
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.

3 participants
0