AI engineering glossary · Calculus optimisation

What is subgradient method?

Subgradient method: A gradient-descent-like algorithm for convex functions with kinks, using any subgradient in place of the gradient and diminishing step sizes. It converges slowly but is simple and handles non-smooth objectives such as hinge loss.

Level: advancedTopic: Calculus optimisation

Subgradient method: an example

Minimising |x - 2| from x = 0 with steps 1/k: each step moves toward 2 by the diminishing size.

Related terms

More Calculus optimisation terms

Where you learn it

Subgradient method is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.