A perceptron takes a vector of real-valued
inputs, calculates a linear combination of these, and outputs
a 1 if its greater than some threshold or -1 otherwise.
Formally,
Sometimes we'll use simpler vector notation
where we assume an additional constant input .
Learning involves choosing values for
such that the output value matches the target value
.