rebuild

seas.ica.rebuild(components: dict, artifact_components: Optional[numpy.ndarray] = None, t_start: Optional[int] = None, t_stop: Optional[int] = None, apply_mean_filter: bool = True, filter_method: str = 'wavelet', include_noise: bool = True)[source]

Rebuild original vector space based on a subset of principal components of the data. Eigenvectors to use are specified where artifact_components == False. Returns a matrix data_r, the reconstructed vector projected back into its original dimensions.

The filtered mean is NOT readded by this function.

Parameters
  • components – The components from ica_project. artifact_components must be assigned to components before rebuilding, or passed in explicitly

  • artifact_components – Overrides the artifact_components key in components, to rebuild all components except those specified

  • t_start – The frame to start rebuilding the movie at. If none is provided, the rebuilt movie starts at the first frame

  • t_stop – The frame to stop rebuilding the movie at. If none is provided, the rebuilt movie ends at the last frame

  • apply_mean_filter – Whether to apply a filter to the mean signal.

  • filter_method

    ; The filter method to apply (see filter_mean function).

  • include_noise – Whether to include noise components when rebuilding. If noise_components should not be included in the rebuilt movie, set this to False

Returns

The ICA filtered video.

Return type

data_r