Back to the curriculum

L2-M01 · Level 2 · ~13 h

Evaluation Fundamentals

What you build: Evaluation strategy

lessons
5
lesson hours (estimate)
≈ 8.5 h
0/5 lessons marked done · Progress is saved in this browser only. No account, nothing is sent to a server.
In review. The curriculum, module overviews and Levels 1–3 lessons are drafts written with AI assistance and reviewed by AI. Human review is still pending. English translation: AI-assisted, not human-reviewed.

Levels 1–3 lessons, exercises and quizzes are published as drafts, in Vietnamese with an AI-assisted English translation. They may change after human review.

Module path

  1. Lesson 1 · L2-M01-L01≈ 1.5 h

    Testing vs evaluation: what each can prove

    What you build: Classifies requirements as test or eval

    Needs: L1-M08-L04

    Key terms (7)
    • TestKiểm thử: input cố định, kỳ vọng cố định, pass/fail
    • Evaluation (eval)Đánh giá: đo chất lượng trên một tập case, cho một tỷ lệ
    • GraderBộ chấm điểm
    • Task / trialMột case / một lần chạy case đó
    • MetricSố đo
    • TEVVTest, evaluation, verification, validation
    • Dataset fingerprintDấu vân tay dataset (hash ngắn)
  2. Lesson 2 · L2-M01-L02≈ 1.5 h

    Defining quality for a specific use case

    What you build: Quality criteria for a tutor bot

    Needs: L2-M01-L01

    Key terms (6)
    • Quality criterionTiêu chí chất lượng
    • Operational definitionĐịnh nghĩa vận hành (nói rõ cái gì là lỗi)
    • Risk levelMức rủi ro
    • Use caseTình huống sử dụng của sản phẩm
    • Fail closedLỗi thì từ chối, không bỏ qua
    • Hint-firstGợi ý trước, không nêu đáp số
  3. Lesson 3 · L2-M01-L03≈ 1.5 h

    Evaluation types: code-based, human, model-graded; offline vs online

    What you build: Picks eval types per criterion

    Needs: L2-M01-L02

    Key terms (9)
    • Code-based graderBộ chấm bằng code
    • Model-graded / LLM-as-a-judgeChấm bằng model / dùng LLM làm giám khảo
    • Human evaluationĐánh giá bởi người
    • Offline / online evaluationĐánh giá offline (trước phát hành) / online (trên lưu lượng thật)
    • Confusion matrixMa trận nhầm lẫn
    • Raw agreementĐộ đồng thuận thô (tỷ lệ khớp)
    • Selection biasThiên lệch chọn mẫu
    • PrecisionTrong các reply bị gắn cờ, tỷ lệ thật sự đúng là lớp bị gắn cờ
    • OversampleLấy mẫu vượt tỷ lệ thật cho một lớp hiếm
  4. Lesson 4 · L2-M01-L04≈ 2 h

    Statistics for evals: rates, confidence intervals, sample size

    What you build: Computes an interval for a pass rate

    Needs: L2-M01-L03

    Key terms (8)
    • Confidence intervalKhoảng tin cậy
    • Standard errorSai số chuẩn
    • CoverageĐộ phủ (xác suất khoảng chứa giá trị thật)
    • Margin of errorBiên sai số (nửa độ rộng của khoảng)
    • Sample sizeCỡ mẫu (số case)
    • PowerĐộ mạnh (xác suất phát hiện một khác biệt có thật)
    • BootstrapRút mẫu lại có hoàn lại để ước lượng độ bất định
    • Unit of samplingĐơn vị lấy mẫu
  5. Lesson 5 · L2-M01-L05≈ 2 h

    Writing an evaluation strategy

    What you build: Strategy document

    Needs: L2-M01-L04

    Key terms (7)
    • Evaluation strategyChiến lược đánh giá
    • Decision ruleQuy tắc quyết định
    • GateCổng chặn / cho qua dựa trên điều kiện
    • ThresholdNgưỡng
    • CalibrationHiệu chuẩn (so với nhãn của người)
    • LimitationGiới hạn của phép đo
    • Continuous evaluationEvaluation chạy liên tục sau mỗi thay đổi

A. Module overview

Field Value
Module ID L2-M01
Level 2 - AI Quality Engineer (Evaluation)
Description Tell testing from evaluation; define quality for a use case; choose a code, human or model grader; offline versus online; statistics for eval (confidence intervals, sample size, power); write an evaluation strategy. The lab builds up a small evaluation harness for a fictional math-tutoring chatbot (HocVui Tutor), running offline against a seeded simulation.
Why this module matters Most mistakes in AI evaluation are not in the code but in the question: what to measure, on how much data, and what to conclude. This module lays the foundation for every later Level 2 module (datasets, metrics, judges, human evaluation, RAG, model comparison).
Target professional competency Level 2: "Distinguish software testing from model evaluation and choose the right one per requirement" and "Interpret metrics with uncertainty instead of as single numbers".
Estimated duration 5 lessons (90 + 90 + 100 + 120 + 120 minutes) ≈ 8.7 hours + module assignment ~4 hours + quiz 0.5 hours ≈ 13 hours for someone who has completed Level 1. An estimate, not yet measured with real learners.
Prerequisites Level 1 (especially L1-M06 on repeated runs and the Wilson interval, and L1-M08). High-school math; no statistics course needed. No API key needed.
Module output An evaluation strategy for an AI feature
Cost 0 VND

What learners build. A small evaluation harness, step by step: (L01) run the same system two ways, test and eval, and record the configuration; (L02) a set of quality criteria with operational definitions; (L03) code graders, human labels, a simulated judge and online signals; (L04) confidence intervals and sample-size calculation; (L05) a strategy checked by a validator and reported per criterion. Everything lives in code-labs/l2-m01.

B. Learning objectives

ID Objective
MO1 Classify a requirement as test, eval or both, and explain what each side can prove.
MO2 Write quality criteria with operational definitions and a risk level for a specific use case.
MO3 Choose the grader type (code, human, model; offline, online) for each criterion and check the grader.
MO4 Compute confidence intervals and sample sizes, and judge whether a dataset is enough for a conclusion.
MO5 Write and validate an evaluation strategy with decision rules.

C. Lessons

ID Lesson Duration Prerequisite Concepts Practical output
L2-M01-L01 Testing and evaluation: what each can prove 90' L1-M08-L04 test, eval, case/run/check, pass-fail asymmetry Classify requirements
L2-M01-L02 Defining quality for a specific use case 90' L01 criteria, operational definition, risk Criteria for a tutor bot
L2-M01-L03 Kinds of evaluation: code-based, human, model-graded; offline and online 100' L02 grader, blind spot, human labels, judge, online tripwire Choose the eval type per criterion
L2-M01-L04 Statistics for eval: rates, confidence intervals, sample size 120' L03 Wald/Wilson, coverage, sample size, case versus run, power Confidence interval and sample-size plan
L2-M01-L05 Writing an evaluation strategy 120' L04 strategy, decision rule, validator, report Evaluation strategy

D. Hands-on assignment (module assignment)

An evaluation strategy for an AI feature: the module assignment is in exercises.md (HocVui Tutor v2: classify requirements, criteria, check the grader, sample size, strategy, report and release recommendation; plus one standalone challenge). The five standalone exercises for the individual lessons are in code-labs/l2-m01/exercises/ and in §9 of each lesson.

E. Module assessment

The module quiz quiz.md (12 questions, 20 points, pass at 70%), the module assignment rubric in exercises.md, and the practice-0N.md practice for each lesson . The solutions and the instructor guide are for instructors only and are not published.

F. References

The shared list references.md; each lesson also has its own references table in §12 with access dates.

Objectives ↔ assessment matrix

Objective Lesson Standalone exercise (§9) Module quiz
MO1 L01 exercises/test_l01_requirements.py Q1, Q11
MO2 L02 exercises/test_l02_my_criteria.py Q10
MO3 L03 exercises/test_l03_judge_and_grader.py Q3, Q5, Q7
MO4 L04 exercises/test_l04_sample_size.py Q2, Q4, Q6, Q9, Q12
MO5 L05 exercises/test_l05_strategy.py + my_strategy.json Q8, Q12