internalsGet Pro

Module 04 · Lesson 8 of 11Pro

Convex and non-convex problems

Level
Intermediate
Topic
Calculus and optimization for machine learning
Reading time
16 min

When you finish this page you can

  1. Test whether a loss is convex with the chord test or the curvature test, and say what convexity guarantees about gradient descent.
  2. Explain why multiplying weights, as layers do, makes a loss non-convex and creates saddle points.
  3. Tell a global minimum, a worse local minimum and a saddle point apart by the gradient and the curvature around them.
  4. Choose between a convex model and a non-convex one for a production job, and handle the non-convex case: random starts, several seeds and the spread between them.

Builds on 3 lessons

Start with lesson 414 min
  1. Gradient descent: walking downhill to a better model14 min
  2. Learning rate: step size and stability14 min
  3. Stochastic and mini-batch gradient descent17 min

The same model, split into two layers, never moves

is our example online store. Farah, an ML engineer, scores how likely each customer is to stop buying, so Joseph’s growth team knows who gets a win-back voucher on Monday.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan