Module ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias alias Assign NameStore ListLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Assign NameStore Lambda arguments args NameParam defaults Call NameLoad NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMult Call AttributeLoad BinOpMult NameLoad NameLoad attr Call AttributeLoad BinOpMult NameLoad NameLoad attr Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return BinOpDiv NameLoad BinOpSub BinOpAdd NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp Call NameLoad GeneratorExp Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str If CompareEq NameLoad Str body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpSub Num NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Return BinOpDiv Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num attr Call NameLoad NameLoad NameLoad decorator_list
N/A __future__ division N/A numpy np sklearn.utils.linear_assignment_ linear_assignment sklearn.utils.validation check_consistent_length check_array N/A __all__ N/A consensus_score _check_rows_and_columns N/A N/A a b N/A N/A N/A Unpacks the row and column arrays and checks their shape. N/A N/A check_consistent_length a N/A N/A check_consistent_length b N/A checks N/A N/A N/A x N/A N/A check_array x ensure_2d False N/A N/A a_rows a_cols N/A map checks a N/A N/A b_rows b_cols N/A map checks b N/A N/A a_rows a_cols b_rows b_cols N/A _jaccard N/A N/A a_rows a_cols b_rows b_cols N/A N/A N/A Jaccard coefficient on the elements of the two biclusters. N/A intersection N/A N/A N/A N/A a_rows b_rows sum N/A N/A N/A a_cols b_cols sum N/A a_size N/A N/A N/A a_rows sum N/A N/A a_cols sum N/A b_size N/A N/A N/A b_rows sum N/A N/A b_cols sum N/A N/A intersection N/A N/A a_size b_size intersection N/A _pairwise_similarity N/A N/A a b similarity N/A N/A N/A Computes pairwise similarity matrix.

    result[i, j] is the Jaccard coefficient of a's bicluster i and b's
    bicluster j.

     N/A N/A a_rows a_cols b_rows b_cols N/A _check_rows_and_columns a b N/A n_a N/A N/A a_rows shape N/A 0 N/A n_b N/A N/A b_rows shape N/A 0 N/A result N/A N/A np array N/A list N/A N/A list N/A N/A similarity N/A a_rows N/A i N/A a_cols N/A i N/A b_rows N/A j N/A b_cols N/A j N/A j N/A range n_b N/A i N/A range n_a N/A result N/A consensus_score N/A N/A a b similarity N/A jaccard N/A N/A 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 :ref:`User Guide <biclustering>`.

    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
    ----------

    * Hochreiter, Bodenhofer, et. al., 2010. `FABIA: factor analysis
      for bicluster acquisition
      <https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2881408/>`__.

     N/A N/A similarity jaccard N/A N/A similarity _jaccard N/A matrix N/A _pairwise_similarity a b similarity N/A indices N/A linear_assignment N/A 1.0 matrix N/A n_a N/A len N/A a N/A 0 N/A n_b N/A len N/A b N/A 0 N/A N/A N/A N/A N/A matrix N/A N/A N/A indices N/A N/A N/A 0 N/A indices N/A N/A N/A 1 sum N/A max n_a n_b N/A