Calculus for Machine Learning

Derivatives tell you which way is downhill. That is all a neural network needs to learn.

Learn 1 hr Python

Prerequisites: Phase 1, Lessons 01-03

#Learning Objectives

  • Compute numerical and analytical derivatives for common ML functions (x^2, sigmoid, cross-entropy)
  • Implement gradient descent from scratch to minimize a loss function in 1D and 2D
  • Derive the gradient of a linear regression model and train it via manual weight updates
  • Explain the Hessian matrix, Taylor series approximations, and their connection to optimization methods
Full Access lesson

Keep going. The rest of this lesson is one step away.

Unlock all 503 lessons, video, code, quizzes and every future update. Pay in your own currency with Paystack.

The text and code of this lesson are based on AI Engineering from Scratch by Rohit Ghumare, MIT licensed.