Closed agoscinski closed 1 year ago
This is intentional behavior, as standardizing for pcovr is different than for PCA. We do not want automatic standardization.
You also need centering for PCovR otherwise your covariance matrix is wrong. I can see that you don't want to center inside the class, but you should at least print a warning that the data is not centered and will give wrong results.
Also you add the mean in the transform function, so there is some inconsistency here, even you completely remove it or you add it in both places.
Solved in #159
Computing the mean here https://github.com/lab-cosmo/scikit-cosmo/blob/7ef05ebc73e5ef016d53f3aee1069333c07a9933/skcosmo/decomposition/_pcovr.py#L271 but it is never centering the features
EDIT: this does not affect any results, because we always use the Standardizer before