| 1 | Differences among the results of KernelPCA with rbf kernel |
| 2 | Hi there, |
| 3 | I met with a problem: |
| 4 | |
| 5 | #### Description |
| 6 | When I run KernelPCA for dimension reduction for the same datasets, the results are different in signs. |
| 7 | |
| 8 | #### Steps/Code to Reproduce |
| 9 | Just to reduce the dimension to 7 with rbf kernel: |
| 10 | pca = KernelPCA(n_components=7, kernel='rbf', copy_X=False, n_jobs=-1) |
| 11 | pca.fit_transform(X) |
| 12 | |
| 13 | #### Expected Results |
| 14 | The same result. |
| 15 | |
| 16 | #### Actual Results |
| 17 | The results are the same except for their signs:( |
| 18 | [[-0.44457617 -0.18155886 -0.10873474 0.13548386 -0.1437174 -0.057469 0.18124364]] |
| 19 | |
| 20 | [[ 0.44457617 0.18155886 0.10873474 -0.13548386 -0.1437174 -0.057469 -0.18124364]] |
| 21 | |
| 22 | [[-0.44457617 -0.18155886 0.10873474 0.13548386 0.1437174 0.057469 0.18124364]] |
| 23 | |
| 24 | #### Versions |
| 25 | 0.18.1 |
| 26 | |