Machine Learning, Regression, Classification, Scikit Learn, Artificial Intelligence.
problem). Now, let’s add some outliers! X1 = np.random.uniform(0, 0.6, (1000,1)) y1 = [0]*1000 X2= np.random.uniform(0.4, 1, (1000,1)) y2 = [1]*1000 X3 = np.random.uniform(100, 200, (10,1)) y3 = [1]*10 X = np.concatenate((X1, X2, X3)) y = np.concatenate((y1, y2, y3)) You can see I’ve added 10