liveBook · Manning

Parameter

As explained in Machine Learning Algorithms in Depth

A weight matrix is a matrix of learned coefficients that parameterizes connections between neural-network units.

A weight matrix holds learned coefficients that parameterize connections between neural-network units. It is part of the model parameters, denoted θ: changing its entries changes the network’s behavior. The matrix describes what can be learned; a training method determines how its entries change. section 1.4 section 10.4

There are two ways to reason about θ here. In Bayesian inference, parameters are random variables: a prior p(θ) and likelihood p(x|θ) determine a posterior p(θ|x) proportional to p(x|θ)p(θ). In neural-network optimization, θ is updated to reduce a loss. These are different treatments of parameters, not interchangeable update rules. section 1.4 section 10.4

For stochastic gradient descent, let g be the loss gradient with respect to θ, computed using a mini-batch. An update takes a step in the negative gradient direction: θₖ₊₁ = θₖ − εₖg. The learning rate εₖ controls the step size. If it is too large, updates can miss an optimum; if too small, training can take unnecessarily long. section 10.4

Training example

A convolutional neural network trained on CIFAR-100 with Keras/TensorFlow provides a concrete setting for comparing optimizers. Its training curves report cross-entropy loss and validation accuracy, rather than displaying each weight-matrix entry. section 10.4

Figure 10.13 Cross-entropy loss and validation accuracy of LeNet trained on cifar100 using different optimizers
figure

Compare the loss and validation-accuracy curves to see how optimizer choice affects training the model’s parameters. section 10.4

How Machine Learning Algorithms in Depth covers it

How deep it goes
Explains parameter updates through mini-batch gradients and learning rates, without detailing a weight matrix’s dimensions or individual entries.
Examples
Uses a Keras/TensorFlow convolutional network on CIFAR-100 to compare optimizers through loss and validation-accuracy curves.
What it assumes
Uses matrix, gradient, loss, and conditional-probability notation without deriving those foundations.
What you can do after
Evaluate/understand how gradient direction and learning rate affect updates to neural-network parameters.
How it connects
Connects parameters to Bayesian inference, posterior distributions, loss gradients, stochastic gradient descent, and learning rates.

Also explained in

Compare how 31 books explain parameter →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Algorithms in Depth. The section links point to the parts of the book it draws on.