The perceptron is the simplest neural network, consisting of a single artificial neuron. Invented by Frank Rosenblatt in 1958, it was the first algorithm capable of learning to classify patterns from data.
                    Perceptrons find applications in civil engineering for binary decision tasks like pass/fail structural assessment, safe/unsafe load classification, and go/no-go construction decisions.
                
                
                    • Click the plot to add blue (class 0) or red (class 1) points, or use the dataset buttons for predefined examples
                    • Click "Step" to train one epoch—the perceptron tests each point and updates the decision boundary when it finds errors
                    • Adjust learning rate  to control update step size. Watch how the boundary moves to separate the classes
                    How many epochs does it take to converge for linearly separable data? What happens with non-separable data?
                
                
                    • Decision boundary: The line  separating the two classes
                    • Convergence: Training stops when no errors are made in an epoch (for linearly separable data)
                    • Misclassified points: Highlighted during training to show which points caused weight updates
                    • Learning rate: Higher  means faster but potentially unstable learning
                    • Perceptron guarantee: Will always converge to a solution if data is linearly separable