Skip to content

Commit

Permalink
Merge pull request #17 from deryrahman/patch-1
Browse files Browse the repository at this point in the history
Update 302_simple_classification.py
  • Loading branch information
MorvanZhou committed Sep 30, 2018
2 parents 0468d25 + 0579196 commit b12aa35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorial-contents/302_simple_classification.py
Expand Up @@ -17,9 +17,9 @@
# fake data
n_data = np.ones((100, 2))
x0 = np.random.normal(2*n_data, 1) # class0 x shape=(100, 2)
y0 = np.zeros(100) # class0 y shape=(100, 1)
y0 = np.zeros(100) # class0 y shape=(100, )
x1 = np.random.normal(-2*n_data, 1) # class1 x shape=(100, 2)
y1 = np.ones(100) # class1 y shape=(100, 1)
y1 = np.ones(100) # class1 y shape=(100, )
x = np.vstack((x0, x1)) # shape (200, 2) + some noise
y = np.hstack((y0, y1)) # shape (200, )

Expand Down Expand Up @@ -56,4 +56,4 @@
plt.pause(0.1)

plt.ioff()
plt.show()
plt.show()

0 comments on commit b12aa35

Please sign in to comment.