Last active
April 20, 2016 07:22
-
-
Save zhpmatrix/5dd9ffc763df9a6fe4474b07327c3335 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plt.xlabel("$x_1$") | |
plt.ylabel("$x_2$") | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from sklearn.decomposition import PCA, KernelPCA | |
from sklearn.datasets import make_circles | |
np.random.seed(0) | |
'''what's the meaning of the codes as follow??''' | |
reds = y == 0 | |
blues = y == 1 | |
plt.plot(X[reds, 0], X[reds, 1], "ro") | |
plt.plot(X[blues, 0], X[blues, 1], "bo") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment