def get_relevant_features(features,
                          diff_threshold = 0.05,
                          active_threshold = 0.1,
                          inactive_threshold = 0.1):

    """
    -- DESCRIPTION --
    Extract "relevant" features from a set of given features. Relevant in this
    case means that they fullfill some properties specified in the PARAMS.
    It's recommended to use get_optimized_feature_thresholds() to get the values
    for PARAMS.
      PARAMS:
        - features (pandas dataframe):
            a pandas dataframe with name, difference, active frequency and
            inactive frequency of the interactions (as returned by the Scoring
            class of PIA: get_feature_information())
        - diff_threshold (float; interval (0,1)):
            interactions with frequency difference less than diff_threshold are
            discarded
            DEFAULT: 0.05
        - active_threshold (float; interval (0,1)):
            interactions with active frequency less than active_threshold are
            discarded
            DEFAULT: 0.1
        - inactive_threshold (float; interval (0,1)):
            interactions with inactive frequency less than inactive_threshold
            are discarded
            DEFAULT: 0.1
      RETURNS:
        - a pruned pandas dataframe only containing relevant features
    """

    f = features.loc[(features["DIFFERENCE"] >= diff_threshold) & (features["ACTIVE_FREQUENCY"] >= active_threshold) & (features["INACTIVE_FREQUENCY"] >= inactive_threshold)]
    return f