September 2019
Intermediate to advanced
420 pages
10h 29m
English
In the following steps, you will learn to build a perceptron to separate a nonlinear data:
In [12]: X, y = make_blobs(n_samples=100, centers=2,... cluster_std=5.2, random_state=42)... y = 2 * y - 1
In [13]: plt.scatter(X[:, 0], X[:, 1], s=100, c=y);... plt.xlabel('x1')... plt.ylabel('x2')
As is evident in the following screenshot, this ...
Read now
Unlock full access