sklearn.metrics.consensus_score()

sklearn.metrics.consensus_score

sklearn.metrics.consensus_score(a, b, similarity='jaccard') [source]

The similarity of two sets of biclusters.

Similarity between individual biclusters is computed. Then the best matching between sets is found using the Hungarian algorithm. The final score is the sum of similarities divided by the size of the larger set.

Read more in the User Guide.

Parameters:

a : (rows, columns)

Tuple of row and column indicators for a set of biclusters.

b : (rows, columns)

Another set of biclusters like a.

similarity : string or function, optional, default: “jaccard”

May be the string “jaccard” to use the Jaccard coefficient, or any function that takes four arguments, each of which is a 1d indicator vector: (a_rows, a_columns, b_rows, b_columns).

References

Examples using sklearn.metrics.consensus_score

© 2007–2016 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.metrics.consensus_score.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部