/cknn

Implementation of Continuous k-Nearest Neighbors in Python

Primary LanguagePythonMIT LicenseMIT

Continuous k-Nearest Neighbors in Python

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 Data Analysis' (https://arxiv.org/pdf/1606.02353.pdf)

license Build Status

Installation

This package only depends on numpy and scipy. The package can be installed via pip:

$ pip install git+https://github.com/chlorochrule/cknn

Usage

X is a data matrix. A simple example is like:

from cknn import cknneighbors_graph

ckng = cknneighbors_graph(X, n_neighbors=5, delta=1.0)

License

MIT