(self, data, progress_callback=None)
return data
Apply the `preprocessors` to the data
Apply the `preprocessors` to the data
Apply the preprocessors to the data
def preprocess(self, data, progress_callback=None):
        """Apply the `preprocessors` to the data"""
        if progress_callback is None:
            progress_callback = dummy_callback
        n_pps = len(list(self.active_preprocessors))
        for i, pp in enumerate(self.active_preprocessors):
            progress_callback(i / n_pps)
            data = pp(data)
        progress_callback(1)
        return data
def preprocess ( self , data , progress_callback = None ) : if progress_callback is None : progress_callback = dummy_callback n_pps = len ( list ( self . active_preprocessors ) ) for i , pp in enumerate ( self . active_preprocessors ) : progress_callback ( i / n_pps ) data = pp ( data ) progress_callback ( 1 ) return data