internalsGet Pro

Module 04 · Lesson 1 of 11Pro

Derivatives: how outputs change with inputs

Level
Beginner
Topic
Calculus and optimization for machine learning
Reading time
13 min

When you finish this page you can

  1. Read a derivative as the rate a loss changes when one weight moves a little, and use its sign and size to decide which way to move the weight.
  2. Find the derivative of a polynomial loss with the power, constant-multiple and sum rules.
  3. Estimate a derivative numerically with a small step, and pick a step that floating-point rounding doesn’t ruin.
  4. Choose between three ways to get a derivative: rules by hand, a numerical estimate, or autograd.
  1. NumPy: arrays and vectorized maths14 min
  2. PyTorch tensors: shapes, axes and operations14 min

Which way should the weight move?

is our example online store. Joseph’s growth team wants to know how many orders each customer will place next month, so they can plan vouchers. Farah, an ML engineer, starts with the smallest she can build on her notebook sample of 200,000 customers.

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