Skip to main content
Version: 0.93

operators.filter.LabelIntFilter

class operators.filter.LabelIntFilter(label_ints, filter_type='include', label_col='preds')

A filter that includes/excludes all datapoints corresponding to specified label ints.

This operator either includes or excludes datapoints in passing dataframes that have integer labels in the set of provided :label_ints.

Parameters

NameTypeDefaultInfo
label_intsList[int]The list of integers to use when applying the filter.
filter_typestr'include'The type of filter to apply (either “include” or “exclude”).
label_colstr'preds'The column in the passing dataframe to look for label integers.