-
Notifications
You must be signed in to change notification settings - Fork 94
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
much improved NN graph #43
Open
mdeff
wants to merge
92
commits into
master
Choose a base branch
from
naspert-nn_refactor
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 74 commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
1ee85b5
attempt to refactor nn graph building
naspert 4bacd5c
update tests
naspert 00bbcdd
fix typo
naspert b822333
fix tests (avoiding not implemented combinations)
naspert 38aebd0
- fix missing space after colon in dictionary
naspert 524c60f
fix (matlab) GSP url
naspert ae83814
throw exception when using FLANN + max_dist (produces incorrect results)
naspert 62fc0ce
update test case to fit FLANN & max_dist exception
naspert 6f473fa
implement nn graph using pdist using radius
naspert 25ec6d2
implement radius nn graph with flann
naspert 96b628e
flann returns the squared distance when called with 'euclidean' dista…
naspert 09bbff4
compute sqrt of list properly
naspert 27b9a03
use cyflann instead of pyflann (radius search not working)
naspert 8a1f9b9
check nn graphs building against pdist reference
naspert 6e9e2ac
cyflann needs the flann library to be installed on the system
naspert 811de06
check nn graphs building against pdist reference
naspert 813fe39
backport stuff from cyflann branch
naspert 4a4d597
flann should (mostly) work for knn graphs
naspert 53dffc1
fix pdist warnings
naspert 1309e92
implement and use scipy-ckdtree as default (faster than kdtree)
naspert 90ae9a8
Merge remote-tracking branch 'origin-nas/nn_cyflann' into nn_refactor
naspert 648fa91
backport README changes from master
naspert 96fa5f6
Merge branch 'master' of https://github.com/epfl-lts2/pygsp into nn_r…
naspert c26e449
Merge branch 'master' into nn_refactor
naspert 8e7c553
add nmslib
naspert b83e467
test flann when not on windows
naspert 28b7858
use the same code to build sparse matrix for knn and radius
naspert 188c4a6
building the graph with rescale/center=False should also work
naspert 59c131a
Merge pull request #1 from naspert/nmslib
naspert 8e98b77
update doc for nmslib
naspert 08ae29f
enable multithreading with ckdtree/nmslib
naspert 57e9661
Merge branch 'master' into nn_refactor
naspert a562896
fix _get_extra_repr
naspert f69c694
Merge branch 'nn_refactor' of https://github.com/naspert/pygsp into n…
mdeff 441341f
Merge branch 'master' into naspert-nn_refactor
mdeff 8a51649
NNGraph: clean and doc (PR #21)
mdeff 9b5d8c0
python 2.7 doesn't support keyword-only args
mdeff 720646e
simplify test_nngraph (PR #21)
mdeff 172d83f
python 2.7 doesn't support dict unpacking
mdeff be16da9
correct number of edges (PR #21)
mdeff a879818
order=3 by default (order=0 is not supported by all backends)
mdeff 719d397
avoid deprecation warning
mdeff eb2ab0b
deal with empty neighborhood
mdeff b2bfb51
nngraph: don't store features
mdeff e1879ee
nngraph: further cleanup
mdeff bf7427f
nngraph: standardize instead of center and rescale
mdeff ec74ed7
nngraph: simplify default kernel_width
mdeff c1e1148
nngraph: test empty graph
mdeff 57ce98c
no assertLogs in python 2.7
mdeff 695272b
nngraph: fix symmetrization
mdeff 505e456
nngraph: fix radius cKDTree (PR #21)
mdeff 204ad19
compact code
mdeff 2b25337
NNGraph: allow user to pass parameters to backends
mdeff 8cc3539
fix flann distances
mdeff ebc5c05
NNGraph: test consistency across backends
mdeff 1167f52
python 2.7 dict unpacking
mdeff 3638cfd
pdist accepts no parameters
mdeff 9b663aa
NNGraph: test distance on a circle
mdeff 4af4118
NNGraph pdist: don't sort twice
mdeff 624af23
NNGraph: fuse knn and radius implementations
mdeff 043579e
nmslib: number of thread is automatically set to max
mdeff 1d22376
order consistent with metric
mdeff 0763076
cleaner error handling
mdeff 3f0c2b5
nngraph: test standardization
mdeff 26e12e3
nngraph: radius estimation
mdeff 080bb5c
fix others uses of radius
mdeff dad4105
nngraph: check shape of features
mdeff f544e1e
nngraph: fix definition of gaussian kernel
mdeff 9c8e86e
nngraph: allow users to choose the similarity kernel
mdeff bfef548
nngraph: fix attributes
mdeff 5c2e856
nngraph: fix intermittent test failure of nmslib
mdeff af5aeca
nngraph: width = radius / 2
mdeff 0fc8fd1
nngraph: doc and examples
mdeff cbb2537
nngraph: update history
mdeff 1da0e55
Update nngraph.py
nperraud 17dc1c6
nngraph: only warn for similarity > 1
mdeff ad5caee
show original exception if nmslib cannot be imported
mdeff f9cc066
add nn support
nperraud 29d6fa6
make test work
nperraud 280ae3c
fix tests
nperraud 0b1242b
make k=4 to pass tests
nperraud ddc290e
test
nperraud 9ad6bff
making test pass -- not very clean nn function
nperraud 17e24a7
update tests
nperraud d933292
Merge branch 'master' into naspert-nn_refactor
nperraud b25b3ba
small fix
nperraud 8e2ff0e
fix doc
nperraud 74ea306
fix test
nperraud cc78ff2
fix test
nperraud 92b6fbb
fix test_graphs
nperraud 152bfae
update reduction
nperraud 3212350
Merge branch 'master' into naspert-nn_refactor
mdeff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want a radius graph by default for the bunny?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That comes from the matlab version. It was however updated to a kNN in version 0.7.0 epfl-lts2/gspbox@6079047. Do you think we should do it here too? If yes, a small PR with justification is best (if you remember why it was radius before and kNN now).