Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← All weeks

Understanding Modern AI / Week 01

AI and Machine Learning Fundamentals

Build a leakage-safe classifier and scalar optimizer. Fit a simple baseline and classifier; calculate a scalar gradient update. Reserve the neural-network comparison for Week 2.

Your lessons

  1. 01

    Learning from labels, structure, and reward

    60 minutes planned · 7 sections
    Start →
  2. 02

    Preparing data and testing a prediction fairly

    60 minutes planned · 8 sections
    Start →
  3. 03

    How a model learns from error

    60 minutes planned · 7 sections
    Start →

// Put it into practice

A leakage-safe classifier and scalar optimizer

  1. Download week01.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Apply the three learning setups.
  3. Lesson 2: Repair a six-row customer dataset, select a group or time split, and run a supplied scikit-learn baseline.
  4. Lesson 3: Trace one scalar update by hand, reproduce it with NumPy, and compare small and excessive learning rates.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 1 Python lab ↓

Read the script’s setup instructions and run it on your own computer. The website does not execute code or verify your results.

// Independent work

W01-LAB

Week 1: A leakage-safe classifier and scalar optimizer

Fit a simple baseline and classifier; calculate a scalar gradient update. Reserve the neural-network comparison for Week 2.

Extend the guided artifact rather than start a second project. Group overlap is empty; preprocessing is fitted only on training records; predictions, confusion counts, and one gradient update are checked.

What to produce

  • A leakage-safe classifier and scalar optimizer
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • Group overlap is empty; preprocessing is fitted only on training records; predictions, confusion counts, and one gradient update are checked.
  • Each claimed execution is supported by actual saved output.
  • Fixture results and real model results are identified separately.
  • Setup and reproduction use the taught tools without private credentials.
Self-assessment rubric
Technical correctness · 35 points
Implementation or analysis follows the relevant technical mechanism and handles the stated case.
Evaluation and evidence · 30 points
Reproducible tests, appropriate baseline, and accurate interpretation.
Engineering quality · 20 points
Clear structure, safe boundaries, and usable reproduction instructions.
Explanation and reflection · 15 points
Explains tradeoffs, limitations, and next experiment with evidence.

// Retrieve before you reread

Week 1 knowledge check

Try all 6 questions. Check your answers, review the explanations, and retry whenever you like. Answers are checked on this device.

1. A maintenance system groups machines by vibration patterns without supplied fault categories. What teaches its grouping?
2. A warehouse robot changes its route policy using delays and successful deliveries after its moves. Which learning setup fits?
3. A medical dataset has five visits per patient and must estimate performance on new patients. What should be separated?
4. A purchase-time predictor uses a chargeback reported two weeks later as an input. What is the problem?
5. For input 3,target 9,weight 2 and learning rate 0.1, what is the new weight using half squared error?
6. A detector finds 6 of 15 actual incidents and raises 3 false alarms. What is incident recall?

Next: week 2 →