绘制大型数据集的层次聚类树状图 [英] Plotting hierarchical clustering dendrograms for large data sets

查看:555
本文介绍了绘制大型数据集的层次聚类树状图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有大量的时间序列数据集.为了可视化python中的聚类,我想绘制时间序列图以及树状图,如下所示.

I have a huge data set of time series data. In order to visualise the clustering in python, I want to plot time series graphs along with the dendrogram as shown below.

我试图通过并排创建两个子图,通过在python中使用subgrid2plot()函数来做到这一点.我用序列图填充了第一个图,然后用树状图填充了第二个图.但是一旦时间序列数量增加,它就会变得模糊.

I tried to do it by using subgrid2plot() function in python by creating two subplots side by side. I filled first one with series graphs and second one with dendrograms. But once number of time series increased, it became blur.

有人可以建议一种绘制此类树状图的好方法吗?我有大约50,000个时间序列来聚类和可视化.

Can someone suggest a nice way to plot this type of dendrogram? I have around 50,000 time series to cluster and visualise.

推荐答案

使用python的json模块将数据转换为JSON,然后使用从此处查看图库,您可以在其中找到树状图和时间序列图

Convert data into JSON with json module of python and then use D3.js for graph ploting. Check the Gallery from here where you can find dendrogram and time series graph

这篇关于绘制大型数据集的层次聚类树状图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆