diff --git a/tutorial-contents/302_simple_classification.py b/tutorial-contents/302_simple_classification.py index 13ba200..721eb24 100644 --- a/tutorial-contents/302_simple_classification.py +++ b/tutorial-contents/302_simple_classification.py @@ -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, ) @@ -56,4 +56,4 @@ plt.pause(0.1) plt.ioff() -plt.show() \ No newline at end of file +plt.show()