playground/compound_disease/transfer_learning_experiment/data/label_functions/compound_disease_lf.py
def LF_CD_NO_CONCLUSION(c):
    """
    This label function fires a -1 if the number of negative label functinos is greater than the number
    of positive label functions.
    The main idea behind this label function is add support to sentences that could
    mention a possible disease gene association.
    """
    positive_num = np.sum([
        LF_CD_TREATS(c),
        LF_CD_CHECK_DEPRESSION_USAGE(c),
        LF_CD_WEAKLY_TREATS(c),
        LF_CD_PALLIATES(c),
        LF_CD_COMPOUND_INDICATION(c),
        LF_CD_TRIAL(c)])
    negative_num = np.abs(np.sum([LF_CD_METHOD_DESC(c), LF_CD_IN_SERIES(c)]))
    if positive_num - negative_num >= 1:
        return 0
    return -1

    This label function fires a -1 if the number of negative label functinos is greater than the number
    of positive label functions.
    The main idea behind this label function is add support to sentences that could
    mention a possible disease gene association.
    
This label function fires a -1 if the number of negative label functinos is greater than the number
of positive label functions.
The main idea behind this label function is add support to sentences that could
mention a possible disease gene association.
This label function fires a - 1 if the number of negative label functinos is greater than the number of positive label functions . The main idea behind this label function is add support to sentences that could mention a possible disease gene association .
def LF_CD_NO_CONCLUSION(c):
    positive_num = np.sum([
        LF_CD_TREATS(c),
        LF_CD_CHECK_DEPRESSION_USAGE(c),
        LF_CD_WEAKLY_TREATS(c),
        LF_CD_PALLIATES(c),
        LF_CD_COMPOUND_INDICATION(c),
        LF_CD_TRIAL(c)])
    negative_num = np.abs(np.sum([LF_CD_METHOD_DESC(c), LF_CD_IN_SERIES(c)]))
    if positive_num - negative_num >= 1:
        return 0
    return -1
def LF_CD_NO_CONCLUSION ( c ) : positive_num = np . sum ( [ LF_CD_TREATS ( c ) , LF_CD_CHECK_DEPRESSION_USAGE ( c ) , LF_CD_WEAKLY_TREATS ( c ) , LF_CD_PALLIATES ( c ) , LF_CD_COMPOUND_INDICATION ( c ) , LF_CD_TRIAL ( c ) ] ) negative_num = np . abs ( np . sum ( [ LF_CD_METHOD_DESC ( c ) , LF_CD_IN_SERIES ( c ) ] ) ) if positive_num - negative_num >= 1 : return 0 return - 1
This label function fires a -1 if the number of negative label functinos is greater than the number
of positive label functions.
This label function fires a - 1 if the number of negative label functinos is greater than the number of positive label functions .
"""
    This label function fires a -1 if the number of negative label functinos is greater than the number
    of positive label functions.
    The main idea behind this label function is add support to sentences that could
    mention a possible disease gene association.
    """
c