Perceptron
A perceptron is a single-layer computational model and linear classifier that combines weighted inputs with a bias and applies a threshold or activation rule.
Grokking Machine Learning
A processing unit or model that computes a weighted combination of inputs, adds a bias, and applies an activation function.
- How it is used
- Predicts one of two categories from features, using sentiment analysis as the running classification problem.
- How deep it goes
- Works through scores, boundaries, and iterative corrections; also identifies gradient descent as another training route.
- Examples
- Uses word counts and alien moods to draw a boundary, then names spam filtering and recommendations as applications.
- What you can do after
- Build it from scratch by scoring features, applying a step function, and repeatedly correcting misclassified points.
Grokking Machine Learning, Second Edition
A linear threshold model that classifies inputs using a weighted sum and an activation rule.
- How it is used
- Classifies labeled data into yes-or-no categories using feature-based predictions.
- How deep it goes
- Develops weighted boundaries, iterative training, mini-batches, from-scratch code, and scikit-learn use; defers full mini-batch mathematics to an appendix.
- Examples
- Uses alien word-count sentiment data, patient symptoms, AND/OR/XOR gates, and a scikit-learn prediction exercise.
- What you can do after
- Build it from scratch and apply it with scikit-learn to fit labeled binary datasets and inspect predictions, weights, and bias.
Read how Grokking Machine Learning, Second Edition explains perceptron →
Math and Architectures of Deep Learning
A simple linear threshold unit that computes a weighted sum of inputs.
- How it is used
- Models binary classification and supplies the repeated threshold unit from which multilayer neural networks are built.
- How deep it goes
- Derives threshold geometry, logic-gate constructions, multilayer combinations, and a matrix-based PyTorch implementation; defers parameter training to gradient-based methods.
- Examples
- Uses AND, OR, NOT, XOR, planar and polygonal decision regions, plus PyTorch threshold-unit code.
- What you can do after
- Evaluate/understand when one thresholded linear unit can classify data and why multilayer networks are needed for nonlinearly separable functions.
Read how Math and Architectures of Deep Learning explains perceptron →
Natural Language Processing in Action, Second Edition
A perceptron is a single-layer computational model that computes a weighted sum of inputs and applies a thresholding activation to make a decision.
- How it is used
- Introduces a basic neuron as a way to turn text features into predictions.
- How deep it goes
- Works through weighted sums and activation functions in a Python forward pass, stopping short of implementing training.
- Examples
- Uses word counts from a short phrase and first names from birth-certificate records as inputs.
- What you can do after
- Build it from scratch for a forward pass that computes a weighted sum and applies a threshold.
Read how Natural Language Processing in Action, Second Edition explains perceptron →
Grokking AI Algorithms, Second Edition
A perceptron is a computational unit and binary linear classifier that combines weighted inputs with a bias and applies an activation rule.
- How it is used
- Introduces the perceptron as a neuron-inspired building block for artificial neural networks.
- How deep it goes
- Explains weighted inputs, summation, activation, and output with a trained model; defers how weights are trained.
- Examples
- Uses apartment size and price to illustrate a trained perceptron predicting whether an apartment will rent within a month.
- What you can do after
- Evaluate or understand how a trained perceptron turns weighted inputs into a prediction.
Read how Grokking AI Algorithms, Second Edition explains perceptron →
Machine Learning Algorithms in Depth
A linear binary classifier that predicts a class from the sign of a weighted sum of input features.
- How it is used
- Introduces supervised classification through a linear binary classifier trained by correcting mistakes.
- How deep it goes
- Derives the prediction rule and decision-boundary geometry, then gives a from-scratch training implementation and evaluation measures.
- Examples
- Uses iris binary classification, a two-dimensional decision-boundary figure, implementation pseudocode, and a confusion matrix.
- What you can do after
- Build it from scratch and evaluate its binary predictions with a confusion matrix.
Read how Machine Learning Algorithms in Depth explains perceptron →
Fight Fraud with Machine Learning
A perceptron is a single-layer neural model that computes a weighted sum of inputs and applies an activation function to produce an output.
- How it is used
- Introduces weighted inputs, neurons, activation functions, and network depth as foundations for deep-learning models.
- How deep it goes
- Defines the weighted-sum and step-function computation, then stops before training procedures or implementation details.
- Examples
- Uses a human-neuron comparison and a diagram showing weighted inputs, a single neuron, and binary output.
- What you can do after
- Evaluate how weighted sums and activation functions form the basic computation of a neural model.
Read how Fight Fraud with Machine Learning explains perceptron →
Also covered in
What to know first
- objective functionAn objective function is a mathematical function that assigns values to candidate solutions or parameter settings, which an optimization procedure seeks to minimize or maximize.
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- lineA line is a one-dimensional straight geometric set extending indefinitely in both directions, commonly represented by a linear equation.
- linear regressionLinear regression is a statistical method that models a numeric response as a linear function of one or more predictor variables with fitted parameters.
Related concepts
- classifierkind of · A classifier is a predictive model that assigns an input to one or more discrete classes or categories.
- neuronkind of · A neuron is a computational unit in a neural network that transforms input signals, typically using learned parameters and an activation function, to produce an output.
- step functionuses · A step function is a piecewise-constant function that changes abruptly between discrete output values when its input crosses one or more specified thresholds.
- language modelkind of · A language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- logical AND operatorimplements · A logical AND operator is a Boolean conjunction that produces true exactly when all operands have true truth values.
- deep learningpart of · Deep learning is a machine-learning approach that uses neural networks with multiple computational layers to learn representations from data.
Questions about perceptron
What is perceptron?
A perceptron is a single-layer computational model and linear classifier that combines weighted inputs with a bias and applies a threshold or activation rule.
Which Manning books explain perceptron?
Grokking Machine Learning, Grokking Machine Learning, Second Edition, Math and Architectures of Deep Learning, Natural Language Processing in Action, Second Edition, Grokking AI Algorithms, Second Edition, Machine Learning Algorithms in Depth and Fight Fraud with Machine Learning.
What should I know before learning perceptron?
Manning books that teach perceptron usually introduce objective function, language model, line and linear regression first.
What is perceptron a kind of?
Perceptron is a kind of classifier. A classifier is a predictive model that assigns an input to one or more discrete classes or categories.
What is perceptron part of?
Perceptron is part of deep learning. Deep learning is a machine-learning approach that uses neural networks with multiple computational layers to learn representations from data.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.






