def filter_nonzero(data, combine=None):

    nz_feats = nonzero_features(data, combine)

    return [set[:, nz_feats] for set in data]

##################################################
# Iterator object for minibatches of datasets
##################################################
Filter non-zero features of data according to a certain combining function
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/utils/datasets.py/filter_nonzero