Noise contrastive data visualization
Project description
ncvis
NCVis is an efficient solution for data visualization. It uses HNSW for fast nearest neighbors graph construction and a parallel approach for building the graph embedding.
Using
import ncvis
vis = ncvis.NCVis()
Y = vis.fit_transform(X)
More detailed examples can be found here.
Installation
Conda [recommended]
You do not need to setup the environment if using conda, all dependencies are installed automatically.
$ conda install -c 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
Python Wrapper
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
$ conda install conda-build numpy cython scipy $ conda install -c conda-forge cxx-compiler c-compiler $ conda-develop -bc .
-
Pip
$ pip install numpy cython $ make wrapper
You can then use pytest to run some basic checks
$ pytest -v recipe/test.py
C++ Binary
-
Release
$ make ncvis
-
Debug
$ make debug
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ncvis-1.5.3.tar.gz
.
File metadata
- Download URL: ncvis-1.5.3.tar.gz
- Upload date:
- Size: 185.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f599d5c41168aea32843d43c3fc5af00bb7796d639367dcba3a6b6a71583668 |
|
MD5 | 6333a7ec9016162bd33b705cf2e8e718 |
|
BLAKE2b-256 | 9ed4d138738384c6d01b0724202d1eee82e01a12fc7a5eedff6fed15eda48f73 |