LDB Lab

Applied AI · Luis Diaz Busquets

Machine LearningYou Can WatchThink.

A 14-module course, AI workbenches and learning agents, all running live in your browser.

01 / 14 course modules 
The course · 14 modules

From first principles to infrastructure.

Five tracks, one idea per module, every one interactive. Open a track to see its modules.

AI workbenches

Test models the way practitioners do.

Evaluate, retrieve, time and compare real models, all running on your device.

Monte Carlo

Every outcome, fully simulated.

Risk desks look at thousands of possible futures at once. Here are 400 of them, drawn live on your device.

Open the Monte Carlo Planner
horizon 1 yearvolatility 30%

Median Outcome of 400

—

 

Legend

Average path
One simulated path
Starting price

Price Paths  $100 Stock

Distribution Final Price

White line: where it started.

Chance of a Loss Ends Below Start

Range of Outcomes After the Horizon

Worst 5%—
Median—
Best 5%—

A hypothetical $100 stock with an 8% yearly drift, simulated with geometric Brownian motion. An illustration of risk, not a forecast.

Learning agents

Agents that learn from their mistakes.

Five agents start knowing nothing, practise on simulated markets, leagues and board games, and are always scored on data they never trained on. Each page lists the mistakes they learned from.

YOLOX-tiny · running on your device · ~30 MB
Computer vision

Real detection, on real footage.

Licensed stock footage, analysed live in your browser. Faces are blurred automatically. Click anything to follow it.

00tracked
00people
—per frame
Index

Everything in the lab.

IDNameWhat you doMethodStatus
Course modules · 14
MOD-01How Models LearnFit a line by hand, explore the loss landscape, watch gradient descent train it, and see overfitting happen.ML foundationsActiveOpen →
MOD-02Classic Machine LearningDecision trees, clustering and nearest neighbours: the workhorse methods behind credit scores and fraud alerts.ML foundationsActiveOpen →
MOD-03Neural NetworksNeurons, layers and backpropagation, with a small network learning to separate shapes live on the page.Deep learningActiveOpen →
MOD-04Seeing with NetworksHow image models find edges, then parts, then objects: the same kind of detector running in the feed above.Deep learningActiveOpen →
MOD-05EmbeddingsHow words, images and documents become lists of numbers where similar things sit close together.Deep learningActiveOpen →
MOD-06How an LLM WorksTokens, embeddings, attention and next-token prediction, in a real mini transformer you can type into.Generative AIActiveOpen →
MOD-07DiffusionHow image generators start from pure noise and clean it up, one step at a time, into a picture.Generative AIActiveOpen →
MOD-08From Predictor to AssistantFine-tuning and human feedback: how a raw text predictor becomes a helpful chat assistant.Generative AIActiveOpen →
MOD-09Why AI Runs on GPUsMatrix maths, memory bandwidth and why one chip family powers almost all of modern AI.AI infrastructureActiveOpen →
MOD-10Training at ScaleSplitting a model across thousands of chips, and what a frontier training run costs.AI infrastructureActiveOpen →
MOD-11How Models Are ServedMemory per model, batching, latency and what each answer costs to run.AI infrastructureActiveOpen →
MOD-12How AI Looks Things UpRetrieval (RAG), the technique behind chatting with your own documents.AI infrastructureActiveOpen →
MOD-13How Agents WorkModels that use tools and take steps, tied to my LADON and HERETIC research agents.AI infrastructureActiveOpen →
MOD-14Evaluation and FailureBenchmarks, hallucinations and bias: how to tell whether a model is actually good, and where it breaks.EvaluationActiveOpen →
AI workbenches · 7
BENCH-01Retrieval WorkbenchChunk a document, search it by keyword, meaning or both, and test retrieval accuracy and honest refusals against questions with known answers.Retrieval, on-deviceActiveOpen →
BENCH-02Inference BenchmarkTime the same small language model on your processor and graphics chip at three precisions: download, load, first-token wait, tokens a second and answer quality.Benchmarking, on-deviceActiveOpen →
BENCH-03Evaluation ArenaSmall open models answer the same 22 auto-graded questions: facts, grounded answers and hallucinations, instructions, arithmetic, typos and prompt injection.Evaluation, on-deviceActiveOpen →
BENCH-05Agent SandboxA small open model gets a calculator, a company directory and a currency converter, and eight tasks graded by code. Every step is shown, one tool result carries a planted instruction, and runs can be downloaded.Agents, on-deviceActiveOpen →
BENCH-04Model PlaygroundGive one financial headline to FinBERT, BERT, Qwen3 and Llama 3.2 at once and compare their calls, all running on your device.Transformers, on-deviceActiveOpen →
SHELL-01Linux CourseEleven guided lessons on a real Linux machine booted inside the page, with a cheat sheet. Then practise freely in the full Arch Linux playground.Linux, on-deviceActiveOpen →
SHELL-02OS: Linux DesktopA full Arch Linux desktop (XFCE) running in the page: windows, file manager, terminal and apps. Save it and come back; nothing touches your computer.Linux, on-deviceActiveOpen →
Learning agents · 5
AGENT-01Market TraderA Q-learning agent teaches itself when to be in or out of a market with hidden bull and bear regimes, scored on 40 years it never saw.Q-learningActiveTrain →
AGENT-02Day TraderA small neural network learns to forecast one-minute prices from its own errors and trades only when the forecast beats the cost.Neural networkActiveTrain →
AGENT-03Sports-Market ModelLearns the strength of 20 clubs from every result and sizes positions with fractional Kelly only when its price beats the market.Online ratingsActiveTrain →
AGENT-04Monte Carlo PlannerMonte Carlo over thousands of lifetimes, with a planner that learns how much stock to hold and when to trim spending.Monte CarloActiveTrain →
AGENT-05LandlordA genetic algorithm evolves strategies for a property-trading board game: what to buy, when to build, how to trade.Genetic algorithmActiveTrain →
Console

Or explore from the command line.

luis@ldb-lab: ~ldb-sh
About

Why this exists.

I study finance at Bryant University, with minors in Applied AI and Law. I built the Lab to understand these models well enough to build them myself, and to test where they help with real financial decisions and where they do not.

Each agent page reports what the agent got wrong, not just what it got right, and compares it with simple rules a person could follow.

Built withPlain HTML, CSS and JavaScript. No frameworks.
ModelsYOLOX-tiny and a face detector on ONNX Runtime Web; every other model is written from scratch.
DataSimulated markets, leagues and portfolios; licensed stock footage for the camera feed.
PrivacyNo cookies, no tracking. Settings stay in your browser.
Educational only. Every market, trading, betting and portfolio result on this site uses simulated data. Nothing here is investment advice.
Simulation, live

A sea of simulations, running right now.

Every agent in the Lab learns by living through thousands of simulated markets, games and lifetimes before it is judged on data it has never seen. This is the world they train in: an endless sea of runs, each pillar of light one simulation in progress.