You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mean of the data after transforming and then inverse transforming should be the same, or at least very similar (maybe there are rounding errors etc.) to the mean of the original dataset.
Describe the bug
KernelPCA.inverse_transform
gives back a zero-meaned dataset, even if the data used to fit the PCA did not have zero mean.Steps/Code to Reproduce
Example:
Expected Results
The mean of the data after transforming and then inverse transforming should be the same, or at least very similar (maybe there are rounding errors etc.) to the mean of the original dataset.
Actual Results
(The inverse transformed data still has zero mean)
Versions
System:
python: 3.6.8 (default, Oct 7 2019, 12:59:55) [GCC 8.3.0]
executable: /home//.virtualenvs/kernelpca_issue/bin/python3
machine: Linux-4.15.0-88-generic-x86_64-with-Ubuntu-18.04-bionic
Python dependencies:
pip: 20.0.2
setuptools: 45.2.0
sklearn: 0.22.2.post1
numpy: 1.18.1
scipy: 1.4.1
Cython: None
pandas: None
matplotlib: None
joblib: 0.14.1
Built with OpenMP: True
The text was updated successfully, but these errors were encountered: