Skip to content

Instantly share code, notes, and snippets.

@zhpmatrix
Last active April 20, 2016 07:22
Show Gist options
  • Save zhpmatrix/5dd9ffc763df9a6fe4474b07327c3335 to your computer and use it in GitHub Desktop.
Save zhpmatrix/5dd9ffc763df9a6fe4474b07327c3335 to your computer and use it in GitHub Desktop.
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