Elffuss BraidHub

kikocis/auto-code-rover public

main · 806 BRawPermalink
1Differences among the results of KernelPCA with rbf kernel
2Hi there,
3I met with a problem:
4
5#### Description
6When I run KernelPCA for dimension reduction for the same datasets, the results are different in signs.
7
8#### Steps/Code to Reproduce
9Just to reduce the dimension to 7 with rbf kernel:
10pca = KernelPCA(n_components=7, kernel='rbf', copy_X=False, n_jobs=-1)
11pca.fit_transform(X)
12
13#### Expected Results
14The same result.
15
16#### Actual Results
17The 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
250.18.1
26