【发布时间】:2021-10-04 03:14:52
【问题描述】:
我正在安排我的Jupyter Lab notebook,其中有cluster algorithm.。如果我不print 或log 某事,这项工作就会失败。 (这就是它的设计方式)。
代码:
import hdbscan
from sklearn.datasets import make_blobs
data, _ = make_blobs(1000000)
clusterer = hdbscan.HDBSCAN(min_cluster_size=100)
cluster_model = clusterer.fit(data)
clusterer.fit(data) 行大约需要 7-8 小时用于大数据集。
如何在拟合时打印或记录某些内容,以免 Kernel 变得理想?
【问题讨论】:
标签: python-3.x logging hierarchical-clustering