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

Skip to content

Conversation

raghavrv
Copy link

@rohanp Please review and merge. This commit avoids duplication in code...

@raghavrv
Copy link
Author

@amueller @GaelVaroquaux Are you okay with this approach? This will help avoid duplicated code (This is similar to my pr for avoiding duplicate code in model selection at scikit-learn#5568)

Copy link
Author

Choose a reason for hiding this comment

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

@amueller @GaelVaroquaux We need to subclass here to avoid sideeffects propagating to the original class LaplacianEigenmap (as deprecated modifies the __init__ of the passed class object)

@raghavrv raghavrv force-pushed the rohanp_wo_duplicate branch from 1712fd8 to 8bd61fe Compare November 23, 2015 10:57
rohanp added a commit that referenced this pull request Nov 23, 2015
[MRG] MAINT Reuse classes and functions to avoid code duplication
@rohanp rohanp merged commit a94dd67 into rohanp:master Nov 23, 2015
@amueller
Copy link

I don't understand what's happening here. This is a move of spectral embedding to laplacian eigenmaps, right? Why is this not a PR to scikit-learn?

@raghavrv
Copy link
Author

Instead of duplicating the code, I sent a PR to his branch to reuse the functions and classes... The main PR is over here - scikit-learn/pull/5883

@raghavrv raghavrv deleted the rohanp_wo_duplicate branch April 22, 2016 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants