def test_GMM(*data):
'''
test the method of GMM
:param data: data , target
:return: None
'''
X,labels_true=data
clst=mixture.GaussianMixture()
clst.fit(X)
predicted_labels=clst.predict(X)
print("ARI:{0}".format(adjusted_rand_score(labels_true,predicted_labels)))
评论列表
文章目录