Simple single-layer binary classifier
Deep Learning Toolbox™ supports perceptrons for historical interest. For better results, you should
patternnet, which can solve nonlinearly
separable problems. Sometimes the term “perceptrons” refers to feed-forward
pattern recognition networks; but the original perceptron, described here, can solve only
Perceptrons are simple single-layer binary classifiers, which divide the input space with a linear decision boundary.
Perceptrons can learn to solve a narrow range of classification problems. They were one of the first neural networks to reliably solve a given class of problem, and their advantage is a simple learning rule.
Solve Simple Classification Problem Using Perceptron
This example shows how to use a perceptron to solve a simple classification logical-OR problem.
x = [0 0 1 1; 0 1 0 1]; t = [0 1 1 1]; net = perceptron; net = train(net,x,t);
y = net(x);
hardlimitTF — Hard limit transfer function
Hard limit transfer function.
perceptronLF — Perceptron learning rule
Perceptron learning rule.
Introduced in R2010b