def filter_ordered_statistics(ordered_statistics, **kwargs):
min_confidence = kwargs.get('<STR_LIT>', <NUM_LIT:0.0>)<EOL>min_lift = kwargs.get('<STR_LIT>', <NUM_LIT:0.0>)<EOL>for ordered_statistic in ordered_statistics:<EOL><INDENT>if ordered_statistic.confidence < min_confidence:<EOL><INDENT>continue<EOL><DEDENT>if ordered_statistic.lift < min_lift:<EOL><INDENT>continue<EOL><DEDENT>yield ordered_statistic<EOL><DEDENT>
Filter OrderedStatistic objects.

Arguments:
    ordered_statistics -- A OrderedStatistic iterable object.

Keyword arguments:
    min_confidence -- The minimum confidence of relations (float).
    min_lift -- The minimum lift of relations (float).