def apply(self, inst, include=None, exclude=None,
              n_pca_components=None, start=None, stop=None,
              copy=None):
        inst = _check_copy_dep(inst, copy)
        if isinstance(inst, _BaseRaw):
            out = self._apply_raw(raw=inst, include=include,
                                  exclude=exclude,
                                  n_pca_components=n_pca_components,
                                  start=start, stop=stop)
        elif isinstance(inst, _BaseEpochs):
            out = self._apply_epochs(epochs=inst, include=include,
                                     exclude=exclude,
                                     n_pca_components=n_pca_components)
        elif isinstance(inst, Evoked):
            out = self._apply_evoked(evoked=inst, include=include,
                                     exclude=exclude,
                                     n_pca_components=n_pca_components)
        else:
            raise ValueError('Data input must be of Raw, Epochs or Evoked '
                             'type')
        return out
Remove selected components from the signal.
dataset/ETHPy150Open mne-tools/mne-python/mne/preprocessing/ica.py/ICA.apply