Skip to main content

Conda PyPI GitHub Build Status

ncvis

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.

Using

import ncvis

vis = ncvis.NCVis()
Y = vis.fit_transform(X)

More detailed examples can be found here.

Installation

You do not need to setup the environment if using conda, all dependencies are installed automatically.

$ conda install alartum::ncvis 

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.

  1. Install numpy, cython and pybind11 packages (compile-time dependencies):
    $ pip install numpy cython pybind11
    
  2. Install ncvis package:
    $ pip install ncvis
    

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 -c conda-forge cxx-compiler c-compiler conda-build numpy cython pybind11 scipy
    $ conda-develop -bc .
    
  • Pip

    $ pip install numpy cython pybind11
    $ 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
    

Metadata

Release files for ncvis 1.5.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ncvis 1.5.13
File Size Uploaded
ncvis-1.5.13.tar.gz 325.9 kB Details

Release files / ncvis-1.5.13.tar.gz

Download URL ncvis-1.5.13.tar.gz
Size 325.9 kB
Tags Source
SHA-256 checksum
How to use checksums
deeb8b2437ff39829261fd86419c00a648a114ff9885af7a8ba11daf76a7bbb7
BLAKE2b-256 checksum
How to use checksums
e8b03653548c88fa032c18e785e4b119be7b4dc6afd8103882913964a5121c1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release history Release notifications | RSS feed

This release

1.5.13 This release

1 release file

1.5.12

1 release file

1.5.10

1 release file

1.5.9

1 release file

1.5.8

1 release file

1.5.7

1 release file

1.5.6

1 release file

1.5.5

1 release file

1.5.4

1 release file

1.5.3

1 release file

1.5.2

1 release file

1.5.1

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.4

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page