Urgent.News

What's breaking now, across hundreds of outlets.

AI

The 4-row dataset that a famous AI model could not learn

In 1958 Frank Rosenblatt showed off the perceptron, a machine that learned from examples. It was a big deal. Then people noticed a tiny problem it could not solve, and that problem had only four rows. Here is the whole perceptron in NumPy. It is the first thing you build in my book. def perceptron ( X , y , epochs = 20 ) : """Learn a line that separates two classes. Labels must be -1 or +1.""" w…

In 1958, Frank Rosenblatt introduced the perceptron, a learning machine capable of adapting to example inputs. The perceptron quickly gained attention, but a small issue soon emerged that only required four data points to illustrate. This limitation is explored in the author's book, "The Whole Machine," which guides readers through the evolution of machine learning models.

The perceptron's code is provided in the source material, demonstrating a simple function that learns a line separating two classes. When trained on an AND dataset with four data points, the perceptron successfully learns a line that perfectly separates the classes. However, when presented with an XOR dataset, the perceptron fails to learn a line that accurately classifies the data, resulting in only two correct classifications out of four.

The author explains that the perceptron's inability to learn the XOR dataset is not due to a bug in the algorithm, but rather a fundamental limitation of the model. By visualizing the four points, it becomes clear that no single straight line can effectively separate the "on" points from the "off" points. The perceptron is restricted to drawing a single line, making it impossible to accommodate both diagonals on different sides.

To overcome this limitation, the author introduces the concept of layers. By stacking multiple perceptron units and introducing a nonlinearity between them, the model can create complex decision boundaries that go beyond simple halves. This breakthrough led to the development of backpropagation, a technique that allows for the efficient training of deep neural networks.

However, the author emphasizes that the core concept of weighted sums and adjustments remains unchanged, even in today's most advanced machine learning models.

The author concludes by highlighting the importance of understanding the limitations of the perceptron, as it serves as a foundation for grasping the more sophisticated models that follow. By working through the example of the perceptron failing on four points, readers can develop a deeper appreciation for the challenges faced by early machine learning researchers and the gradual evolution of modern AI.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Get the news by email. Yesterday's most-covered stories, every morning.

We track opens and clicks to improve the newsletter.

See today's edition · More options

More in AI

Broadcom Pairs Fast AI Growth With a Dividend That Keeps Growing

A 0.8% yield isn't much on its own, but a payout that rises over time adds up, and it's attached to one of the top chipmakers.

  • Broadcom's AI chip revenue hit $16.7 billion in latest fiscal quarter
  • Company forecasts AI revenue to double by 2027, reach $230 billion by 2028
  • Broadcom offers growing dividend, 10% increase in December 2025

More from Sunday, 6 December 2026 →