噪声对比数据可视化

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第三方库


热门话题
Selenium中弹出的java句柄窗口   java将格式化消息从任何片段传递到活动   java如何从int类型的方法返回多个整数   servlets数据不会使用java类和bean插入数据库   java如何修改Solr给出的搜索结果页面?   java如何在wildfly中重定向应用程序路径?   java使用Apache异步HTTP客户端从InputStream构造多部分请求   java解析来自REST的压缩输入流   java上载文件失败,原因是Vaadin Spring PlupLocaddon   使用需要CSRF令牌的旧端点的javascript   java如何在viewpager应用程序中将图像设置为墙纸?   java Axis2与SharePoint 2013(ADFS/FedAuth cookie)   java H2选择:意外的类型39映射   Docker Composition中拒绝java Spring应用程序连接   使用Java的ibm mq ibm mq获取LGETTIME   java循环逻辑中的漏洞   javaspringcom。mongodb。util。JSONParseException   方法调用“振动”可能会产生java。更新到Android Studio 3后出现lang.NullPointerException警告   datetime如何将日历的时间与java进行比较。sql。时间物体?