liveBook · Manning

Weight

As explained in Data Without Labels

A weight is a learned numerical parameter that scales the contribution of an input or intermediate activation in a neural network.

A weight is a numerical parameter that scales an input to a neuron. Each connection carries a weight representing that input’s importance to the next neuron. The neuron combines its weighted inputs with a bias term, then applies an activation function to produce an output. section 8.2.2 section 8.2.3

A two-input perceptron

Suppose the inputs are a and b, with weights P and Q. Its weighted sum is P × a + Q × b. In a threshold-based perceptron, the output is 1 when this sum exceeds the threshold and 0 otherwise. Changing either weight changes how strongly its input contributes to that decision. section 8.2.2

Weights also parameterize a layer’s transformation. During feed-forward propagation, inputs pass through hidden layers, where weights, biases, and activation functions shape the prediction. Training seeks weight and bias values that improve accuracy: backpropagation calculates how the loss changes with each weight, then updates weights over successive iterations to reduce that loss. section 8.2.3 section 8.3.2 section 8.4.1

Face identification

A network trained on face images and corresponding names learns attributes useful for distinguishing people. Its adjusted weights help turn a new image into a prediction, such as a probability score for a particular identity. section 8.2.1 section 8.3.2

Weight adjustment is not limited to supervised prediction. A Boltzmann learning rule adjusts weights to lower an energy function; a deep belief network can pretrain weights layer by layer without labeled data, then fine-tune the network using supervision. section 8.8.1 section 8.9.1

How Data Without Labels covers it

How deep it goes
Defines weighted inputs and a threshold perceptron, then explains iterative weight updates through loss gradients and backpropagation.
Examples
Illustrates weights with a two-input threshold perceptron and a face-identification network trained on images and names.
What it assumes
Builds from numerical inputs and perceptrons, then uses the calculus chain rule to explain backpropagation.
What you can do after
Evaluate/understand how changing network weights changes predictions and how training updates them to reduce loss.
How it connects
Connects weights to perceptrons, biases, activation functions, feed-forward propagation, backpropagation, and Boltzmann learning.

Also explained in

Compare how 4 books explain weight →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Without Labels. The section links point to the parts of the book it draws on.