- Notifications
You must be signed in to change notification settings - Fork5
Implementation of Continuous k-Nearest Neighbors in Python
License
NotificationsYou must be signed in to change notification settings
chlorochrule/cknn
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Note: This package supports Python 3.6 or newer.
This is a Python implementation of Continuous k-Nearest Neighbors(CkNN)proposed in the paper 'Consistent Manifold Representation for Topological DataAnalysis' (https://arxiv.org/pdf/1606.02353.pdf)
This package only depends onnumpy andscipy. The package can be installed viapip
:
$ pip install git+https://github.com/chlorochrule/cknn
X
is a data matrix. A simple example is like:
fromcknnimportcknneighbors_graphckng=cknneighbors_graph(X,n_neighbors=5,delta=1.0)
MIT