1.2. Visualization of the data

In [6]:
plt.scatter(X[:,0], X[:,1], c=y, cmap=cm.coolwarm, edgecolors='w');
plt.title('Random Dataset')
plt.xlabel('feature 1')
plt.ylabel('feature 2')
Out[6]:
Text(0,0.5,'feature 2')