Noise contrastive data visualization
NCVis is an efficient solution for data visualization and dimensionality reduction. It uses HNSW to quickly construct the nearest neighbors graph and a parallel (batched) approach to build its embedding. Efficient random sampling is achieved via PCGRandom. Detailed application examples can be found here.
import ncvis vis = ncvis.NCVis() Y = vis.fit_transform(X)
More detailed examples can be found here.
You do not need to setup the environment if using conda, all dependencies are installed automatically.
$ conda install alartum::ncvis
Pip [not recommended]
Important: be sure to have a compiler with OpenMP support. GCC has it by default, which is not the case with clang. You may need to install llvm-openmp library beforehand.
- Install numpy and cython packages (compile-time dependencies):
$ pip install numpy cython
- Install ncvis package:
$ pip install ncvis
From source [not recommended]
Important: be sure to have OpenMP available.
First of all, download the pcg-cpp and hnswlib libraries:
$ make libs
If conda environment is used, it replaces library search paths. To prevent compilation errors, you either need to use compilers provided by conda or switch to pip and system compilers.
$ conda install conda-build numpy cython scipy $ conda install -c conda-forge cxx-compiler c-compiler $ conda-develop -bc .
$ pip install numpy cython $ make wrapper
You can then use pytest to run some basic checks
$ pytest -v recipe/test.py
$ make ncvis
$ make debug
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size ncvis-1.5.9.tar.gz (290.6 kB)||File type Source||Python version None||Upload date||Hashes View|