Probability map and decision boundary
Loss and accuracy

Feature Engineering Lab: Turning an Unsolvable Problem Solvable (2D)

A logistic-regression classifier is trained by gradient descent on XOR-style data. With raw coordinates no straight line works and the model stays at 50 percent; add the product feature x1*x2, squares or a full polynomial and the same model reaches the analytic Bayes ceiling. Watch the probability surface float above a Blender-made data board, change cluster spread, training points, ridge penalty and learning rate, and see overfitting appear with degree-4 features. Six built-in numerical checks include gradient versus finite differences, the exact ln 2 symmetry value and a Newton solver.

Made with 🟠 Blender