12-perceptron Flashcards
What is the perceptron?
The perceptron is a minimal neural network. Neural networks are composed of neurons
What is a neuron?
Neuron is defined as:
- Input: a vector of numeric inputs
- Output: a scalar
- Hyper-parameter: an activation function
- Parameters: set of parameters per input
What is the perceptron model?
f(theta^Tx) = 1, if theta^tx >= 0, else -1
f is a step function
What does learning mean in the context of the perceptron model?
Learning means to modify the parameters of the perceptron so that performance is optimised
What does the percepton algorithm do?
Iterate over the training data:
- if label is actual do nothing
- if true label is 1 and modelled is -1, then decrease weights
- if true label is -1 and modelled is 1, then increase weights
How does the update formula work for the perceptron algorithm?
theta_j = theta_j + eta(y-y^)*x_j
What does the perceptron algorithm guarantee?
The perceptron algorithm guarantees convergence for linearly separable data
What is an online algorithm?
Updates the weights after each training example. The perceptron is an online algorithm
What is a batch algorithm?
Computes statistics of the whole training data set and updates all parameters at once