I performed a PCA on my epoched data and now would like to create a scree plot from the components. For this, I am trying to follow this tutorial. For this, I need to run the follwing line of code to access the % of variance explained by each component:
pca = UnsupervisedSpatialFilter(PCA(.99)) X_pca = pca.fit_transform(epochs_filt_data) var_explained = pca.explained_variance_ratio_
This returns the following error:
AttributeError: 'UnsupervisedSpatialFilter' object has no attribute 'explained_variance_ratio_'
How can I access