playground/compound_disease/transfer_learning_experiment/data/label_functions/disease_gene_lf.py
def LF_DG_BICLUSTER_CASUAL_MUTATIONS(c):
    """
    This label function uses the bicluster data located in the 
    A global network of biomedical relationships
    """
    sen_pos = c.get_parent().position
    pubmed_id = c.get_parent().document.name
    query = bicluster_dep_df.query("pubmed_id==@pubmed_id&sentence_num==@sen_pos")
    if not(query.empty):
        if query["U"].sum() > 0.0:
            return 1
    return 0

    This label function uses the bicluster data located in the 
    A global network of biomedical relationships
    
This label function uses the bicluster data located in the
A global network of biomedical relationships
This label function uses the bicluster data located in the A global network of biomedical relationships
def LF_DG_BICLUSTER_CASUAL_MUTATIONS(c):
    sen_pos = c.get_parent().position
    pubmed_id = c.get_parent().document.name
    query = bicluster_dep_df.query("pubmed_id==@pubmed_id&sentence_num==@sen_pos")
    if not(query.empty):
        if query["U"].sum() > 0.0:
            return 1
    return 0
def LF_DG_BICLUSTER_CASUAL_MUTATIONS ( c ) : sen_pos = c . get_parent ( ) . position pubmed_id = c . get_parent ( ) . document . name query = bicluster_dep_df . query ( "pubmed_id==@pubmed_id&sentence_num==@sen_pos" ) if not ( query . empty ) : if query [ "U" ] . sum ( ) > 0.0 : return 1 return 0
This label function uses the bicluster data located in the
A global network of biomedical relationships
This label function uses the bicluster data located in the A global network of biomedical relationships
"""
    This label function uses the bicluster data located in the 
    A global network of biomedical relationships
    """
c