Inside the Mind of Artificial Intelligence
Chapter Field Guide
Measurable Learning Outcomes
- Train a simple weighted classifier and observe decision boundaries update.
- Explain why evaluating a model on unseen test data is essential to detect overfitting.
- Explain how next-word prediction works and why fluent text is not automatically factually true.
Core Scientific Intuition
Machine learning adjusts numeric weights from training examples to minimize prediction error. Keeping a separate held-out test set checks whether the model learned a general pattern or merely memorized the training examples (overfitting). Language models predict probability distributions over the next token based on context, which produces fluent prose but still requires external verification for facts.
Units & assumptions: Weights w_i and bias b are learned from labeled training data and evaluated on a disjoint test set.
Worked Example
If a model scores 100% on 10 memorized flashcards but only 50% on 10 new questions, it has overfit the training set rather than generalizing.
Hands-On Exploration
Interactive Laboratory
Test the concepts directly with 4 interactive panels, live controls, and visual feedback.
Open Interactive Lab →Three Guided Projects
Structured experiments with hypotheses, boundary tests, hints, and reflection prompts.
View 3 Projects →Source Code (5 Snippets)
Inspect byte-identical printed JavaScript blocks, download `.js` files, or test runnable blocks in the isolated sandbox.
Browse Code →Self-Check Quiz (5 Questions)
Immediate explanations for every choice, unlimited retries, and local-only score tracking.
Take Self-Check Quiz →Book Chapter Outline (Reference Guide)
Section headings from Volume 1 for cross-referencing with the printed book.
Show all 32 book section headings
- Teach Bit a new skill
- PEOPLE BEHIND THE SCIENCE
- John McCarthy (1927-2011)
- Frank Rosenblatt (1928-1971)
- PEOPLE BEHIND THE SCIENCE
- Geoffrey Hinton (born 1947)
- Yoshua Bengio (born 1964)
- PEOPLE BEHIND THE SCIENCE
- Yann LeCun (born 1960)
- Ashish Vaswani
- Rules or learning?
- Three ways to learn
- Classification, regression and generation
- A model needs examples, not just instructions
- Inside a single artificial neuron
- How a machine improves
- Project 1: Train a tiny classifier
- Test what your model has learned
- From a neuron to a network
- What is a token?
- The prediction game
- Project 2: Build a next-word predictor
- How a language assistant works
- Why a fluent answer can be wrong
- Project 3: A study assistant with evidence
- Make it return evidence, not guesses
- Detective mission: Can Bit be trusted?
- Your evidence checklist
- Limits, fairness and responsible AI
- Your final invention: The Digital Discovery Lab
- More to explore
- Further reading and sources
Primary Sources & Further Reading
External links are provided for independent verification and deeper study. Link availability can change over time; see the Resources page for verification notes.
| Source | Type | Link |
|---|---|---|
| Further reading | reference | https://www.nsf.gov/cise/turing-awardees |
| Read more | reference | https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon |
| Further reading | reference | https://arxiv.org/abs/1706.03762 |
| Google: Machine Learning Crash Course | reference | https://developers.google.com/machine-learning/crash-course |
| Google: Machine learning fundamentals glossary | reference | https://developers.google.com/machine-learning/glossary/fundamentals |
| Harvard NLP: The Annotated Transformer | reference | https://nlp.seas.harvard.edu/annotated-transformer/ |
| OpenAI: Why language models hallucinate | reference | https://openai.com/index/why-language-models-hallucinate/ |
| NIST: Generative AI risk management profile | primary-standard | https://www.nist.gov/publications/artificial-intelligence-risk-management-framework-generative-artificial-intelligence |