我正在使用Scipy进行分层聚类。我成功地使用fcluster在一个阈值上获得了平面簇,但我需要可视化形成的树状图。当我使用dendrogram方法时,对于5-6k个用户向量它能正常工作。但我的数据集包含16k个用户向量。当我为16k个用户运行它时,dendrogram函数会抛出以下错误:
File "/home/enthought/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2333, in _dendrogram_calculate_info
leaf_label_func, i, labels)
File "/home/enthought/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2205, in _append_singleton_leaf_node
ivl.append(str(int(i)))
RuntimeError: maximum recursion depth exceeded while getting the str of an object
有没有关于如何可视化更大数据集的树状图的想法?