Skip to main content
Primary: Phase 2Full CourseIntermediateFree Learning Material
Harvard University

CS50's Introduction to Artificial Intelligence with Python

University course exploring the foundational concepts and algorithms of modern artificial intelligence, including search, optimization, machine learning, neural networks, and natural language processing.

Taught by Brian Yu and David J. Malan, CS50 AI bridges classical algorithmic AI and modern statistical machine learning. Its lectures and Python coding projects cover optimization, probability/uncertainty, supervised learning (nearest neighbors, perceptrons, SVMs, regularization), neural networks, and attention/language fundamentals.

Resource Tracking

Course status is tracked independently from roadmap topic checkboxes so you can mark external courses without altering your topic mastery percentage.

Suggested Learning Position

Phase 2 Comprehensive University Course (Modules 2.1–2.3)

Documented Duration:7 weeks (self-paced)
Language:English
Access & Link Verification

All lecture videos, notes, slides, and hands-on Python project specifications are 100% free on cs50.harvard.edu/ai/.

Status: Verified (2026-11-09)

What You Will Learn from This Resource

  • Implement supervised classification and regression pipelines in Python.
  • Understand optimization landscapes, local minima, and regularization tradeoffs.
  • Connect classical machine learning algorithms to neural network architectures.

Recommended Prerequisites

Review these foundations before starting so you get the most out of this material:

  • CS50P or equivalent fluency in Python programming (Phase 0).

Topics & Keywords

HarvardCS50 AIMachine LearningOptimizationPython
Curriculum Integration

How This Resource Fits Into Your AI & LLM Roadmap

Open Interactive Roadmap

Phase-Specific Study Recommendations (1)

Phase 2 · Resource 2.2Additional Learning

CS50's Introduction to Artificial Intelligence with Python

In Phase 2: Machine Learning From Scratch

Focus on the lectures and projects covering Optimization, Learning (Supervised ML & Regularization), and Neural Networks.

Continue Exploring
Browse Full Library
Phase 0Recommended StartFull Course
Harvard University
BeginnerFree Learning Material

CS50's Introduction to Programming with Python

A comprehensive introduction to Python programming, covering functions, variables, control flow, exceptions, libraries, unit testing, file I/O, and object-oriented programming.

PythonCS50PUnit TestingOOPFile I/O
Your Status:
Phase 2Recommended StartInteractive Course
Google
BeginnerFree Learning Material

Machine Learning Crash Course

Google's practical, interactive introduction to machine learning fundamentals, linear and logistic regression, gradient descent, generalization, regularization, and neural networks.

GoogleMachine LearningLinear RegressionLogistic RegressionGradient Descent
Your Status:
Phases 2, 3Interactive Textbook
D2L
IntermediateFree Learning Material

Dive into Deep Learning

Free interactive textbook combining mathematical explanations, code, and practical deep-learning concepts.

Used across:Phase 2 (2.6)Phase 3 (3.4)
D2LInteractive TextbookDeep LearningPyTorchMLP
Your Status: