Build an AI ad-copy reviewer in Python
A small Python tool that checks ad headlines against your rules, saves a JSON report, and asks a language model to rewrite the worst one.
Build something real, one step at a time. Each program comes from a lesson and has been run, so the code works, and any output shown is what it really prints.
They're all free to read, with no account. A free account adds the exercises, which check your code in the browser. Not sure where to start? See the AI engineer roadmap.
A small Python tool that checks ad headlines against your rules, saves a JSON report, and asks a language model to rewrite the worst one.
Build a research agent with tools, an agent loop, citations you can check and an eval, in plain Python with no framework.
Write the loss that language models train on, from scratch with NumPy, along with KL divergence, perplexity and the gradient.
A complete machine learning project with scikit-learn: baselines, a fair model comparison, one honest test, and a decision about who to contact.
Prepare data without leaks, run the checks that catch bugs, train with early stopping, and compare honestly with a simple baseline.
Write a tiny GPT in PyTorch, train it on a product catalog, and watch it write new descriptions. The whole program is about 70 lines.
Fine-tune a small chat model, test it on held-back products, and use release gates to catch a candidate that looks better but isn't.
A complete to-do tool with subcommands, a SQLite database, clear errors and exit codes, using only the standard library.
Authentication, validation, pagination, idempotency and clean errors, in a working API built with the standard library so you can see how each one works.
A working Model Context Protocol server with tools, resources and prompts, written without an SDK so you can see exactly what goes over the wire.
An agent that reads and edits a project, runs its tests and stops when they pass, with the safety checks that keep it inside the project.
API keys, rate limits, validation, caching, model fallbacks, structured logs and an eval, around a service that classifies support tickets.