in machine learning, the perceptron (or mcculloch-pitts neuron) is an algorithm for supervised learning of binary classifiers. a binary classifier is a function which can decide if an input, represented by a vector of numbers, belongs to some specific class. it is a type of linear classifier, i.e. a classification algorithm that makes its predictions based on a linear predictor function combining a set of weights with the feature vector.