Perceptron
Perceptron
Definition
The simplest artificial neuron: it adds up the inputs with weights, adds a bias, then applies a threshold function to output 0 or 1.
Core idea
It is the historical building block of neural networks (Rosenblatt, 1958). It learns by adjusting the weights whenever it makes a mistake, and it can only separate classes that are linearly separable (it cannot solve XOR).
How it works
- We initialize the weights
- We compute the weighted sum and apply the threshold
- If it is wrong, we adjust the weights in the direction of the correction
- We repeat over the data for several passes
Data type and problem type
| Data type | Numeric |
|---|---|
| Problem type | Linear binary classification |
Strengths
- Very simple and ideal for understanding neural networks
- Fast
Limitations
- Linear boundaries only
- Does not converge if the data is not linearly separable
Key parameters
- The learning rate
- The number of passes
Evaluation metrics
- Accuracy
Supporting tools
| WEKA | functions.VotedPerceptron |
|---|---|
| Orange | Neural Network (with a small layer as an educational substitute) |
| KNIME | RProp MLP Learner (a multilayer network as a substitute) |
Applied examples
- The AND and OR logic gates
- Separating two linearly separable classes
