Linearly separable data contains classes that a straight-line decision boundary can divide. In two dimensions, a linear classifier predicts w1*x + w2*y + b and learns its coefficients from labeled points. section 3.3.2
Two separable point clouds
Generate 1,000 negative and 1,000 positive two-dimensional samples, combine them with zero-or-one labels, and plot the classes. Train TensorFlow variables W and b with mean squared error and gradient descent. After 40 steps, the loss falls from 4.5364 to 0.0289; thresholding predictions at 0.5 separates the plotted points, and the learned boundary can be drawn as a red line.


