def test_scenarios():
"""Test that everything works"""
for s in scenarios():
seeding = kmc2.kmc2(**s)
with warnings.catch_warnings():
warnings.simplefilter("ignore") # disable sklearn warnings
model = MiniBatchKMeans(s["k"], init=seeding).fit(s["X"])
new_centers = model.cluster_centers_
评论列表
文章目录