噪声对比数据可视化

ncvis的Python项目详细描述


CondaPyPIGitHubBuild Status

ncvis

NCVis是一个有效的数据可视化解决方案它使用HNSW构造快速近邻图,并使用并行方法构造图嵌入。

安装

康达[推荐]

如果使用conda,则不需要设置环境,所有依赖项都将自动安装。

$ conda install -c alartum ncvis 

皮普

Important:确保编译器支持OpenMPgcc默认情况下有,但clang的情况并非如此。您可能需要事先安装llvm openmp

安装numpycython包(编译时依赖项):

$ pip install numpy cython

安装ncvis包:

$ pip install ncvis

使用

importncvisvis=ncvis.NCVis()Y=vis.fit(X)

可以找到一个更详细的示例here

实验

可以使用download.sh脚本下载数据集:

$ bash examples/data/download.sh <dataset>

用表中相应的项替换<;dataset>;。您还可以一次下载所有这些文件:

$ bash examples/data/download.sh

然后可以使用来自datapython模块的接口来访问这些数据集。确保已安装这些软件包:

$ pip install -r examples/requirements-pip.txt

$ conda install --file examples/requirements-conda.txt
Dataset<dataset>Dataset Class
MNISTmnistMNIST
Fashion MNISTfmnistFMNIST
IrisirisIris
Handwritten DigitspendigitsPenDigits
COIL-20coil20COIL20
COIL-100coil100COIL100
Mouse scRNA-seqscrnaScRNA
Statlog (Shuttle)shuttleShuttle
Flow Cytometryflownot yet
GoogleNewsnewsnot yet

每个数据集的使用方法如下:

Sample CodeAction
^{}Load the dataset.
^{}Get the samples as numpy array of shape (n_samples, n_dimensions). If samples have more than one dimension they are all flattened.
^{}Get the labels of the samples.
^{}Get total number of samples.
^{}Get 0-th pair (sample, label) from the dataset.
^{}Get the original shape of the samples. For example, it equals to (28, 28) for MNIST.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java变量始终存储0值。为什么?   如何使用Java/REST将Azure blob从一个存储容器移动到另一个存储容器?   java将commons DBCP从1.2升级到1.4,我应该害怕吗?   java如何使用分隔符拆分字符串?   java使用数组读取json对象   java在groovy中切片字符串   交换数组java的两个邻域元素   java移动用于确定字符串是否为回文的逻辑   java Android应用程序在一个活动中崩溃   java Sparkjava将webapp文件夹设置为静态资源/模板的文件夹   java复杂条件表达式,用户易用。   java如何仅在表存在时从表中选择值   java I无法将数据从Recyclerview传递到其他活动   java数据结构最佳设计(大数据)   java Android从DatePickerDialogFragment中删除日历视图   java将数据从Firebase获取到片段   数组。sort()在java中运行不正常