标题: Common Clustering Metrics Implemented by Numpy and Scipy [打印本页] 作者: chenwq 时间: 2013-4-15 12:38 标题: Common Clustering Metrics Implemented by Numpy and Scipy 本帖最后由 chenwq 于 2013-4-15 13:13 编辑
1、Platform required
This is tested under the scipy 0.9 and numpy 2.0, but they should also work with a reasonably new version.
2、Parameters
Each metric requires only the following two parameters: predicted_label, labels predicted by the some clustering algorithm:
predicted_label = array([1,1,6,1,1,1,2,2,2,2,2,2,3,3,3,3,3]) group_truth, labels given by the train data:
group_truth = array([2,5,1,1,3,1,2,2,2,2,2,2,3,3,3,3,3])