Demystifying AI · Stage 4

Loss functions

← Demystifying AIStage 4: Learning machinesNot yet checked by our team

A loss function scores how wrong a model's predictions are as a single number: lower is better. Mean squared error averages the squared gaps between predictions and true answers. Language models use cross-entropy, which is small when the model gave the right next word a high probability. Training is the search for weights that make the loss small.

Why it matters: Gradient descent needs a loss to go downhill on.

Builds on: Averages and spread, Functions and graphs, Training versus using a model

Learn it, then prove it

Sign in (free) to take this step's mastery check and save your journey.

Learn it

Gradient descent, how neural networks learn | Deep Learning Chapter 2

The first part defines the cost (loss) of a network. · 3Blue1Brown

Resources are picked with AI help and not yet checked by our team.


Contact Us

Questions or feedback about anything? We'd love to hear from you.

You can reach us at: support@seriousmindware.com