◢◤ ARKANE_
SYS_TIME UTC+0
Work with me
/01

教师指南Instructor guide

How to run Semester 1. A session plan, what to watch for each week, and how to run the exam and mark the capstone.

This guide is for anyone teaching Semester 1: a university module, a company training cohort, or a study group. Everything the learners use is free and on this site.

How a week runs

Learners read the chapters and take the quizzes before the session. The session is for the hard parts, not for reading the book aloud.

A three-hour session:

Time Activity
0:00 to 0:15 Quiz review. Ask the class which question they found hardest. Work through it together
0:15 to 1:05 Lecture, using the week's slides. Press N for speaker notes
1:05 to 1:15 Break
1:15 to 2:40 Lab. Learners work in pairs. Walk the room
2:40 to 3:00 "Check yourself" slide, then a debrief on the lab's hardest task

Two 90-minute sessions work too: lecture and quiz review in one, the lab in the other.

Self-paced learners follow the same order alone: read, take the quiz, step through the slides, do the lab. Plan on 5 to 8 hours a week.

Before the semester

  • Run the setup guide on a clean machine, or check Colab works on your network.
  • Run every lab's loading code. The datasets page has all of it in one block.
  • Decide how learners report quiz scores. Scores live in each learner's browser. A screenshot of the results screen is enough for most classes.
  • Decide how the exam is run: unsupervised, or in a supervised room (see the exam).
  • Read the capstone brief and set the four milestone dates.

Week by week

What learners usually get wrong, and what to watch in the lab.

Week 1. History, and framing the problem. Learners want to jump to models. Hold them on the problem statement. The common mistake is a label with no time window: "customer churns", not "cancels within 30 days of the billing date". In the lab, ask every pair what their unit of prediction is. Use the setup check to find broken installs in week 1, not week 5.

Week 2. Maths and statistics. Correlation is the trap. The penguin lab is built around a sign flip inside species (Simpson's paradox). Let learners find it before you explain it. Bayes' rule with base rates surprises most people. Do one example on the board.

Week 3. Calculus and optimisation. Learners who skip the numerical gradient check lose an hour to a sign error. Make it the first checkpoint. Many don't expect unscaled features to make gradient descent diverge. Let them see it first.

Week 4. Information theory. Logs in different bases confuse people: bits against nats. scikit-learn's mutual information is in nats. The mushroom lab has one feature that almost solves the problem. Use it to talk about a dataset that's too easy.

Week 5. Python and data cleaning. The date format in the Air Quality data is month first. Some learners parse it day first and get a calendar with holes. Push for a clean() function, not a notebook of one-off edits.

Week 6. SQL. Window functions are the hard part. Draw the partition and the ordering on the board. In the lab, the common mistake is counting cancellations as sales.

Week 7. Exploratory data analysis. Learners produce many charts and few findings. Insist on one sentence per chart. The capped values in California housing are the main point of the lab.

Week 8. The lifecycle and supervised learning. The leak in Bank Marketing is the lesson. Some learners will find it from the dataset page. Others will only see it when the score jumps. Both are fine. Make sure nobody keeps it. Check every pair uses the same folds for all four models.

Week 9. Ensembles. Learners expect boosting to win by a lot. It often wins by a little. Use the timing column to talk about cost. Impurity-based and permutation importance disagree, and that disagreement is worth ten minutes.

Week 10. Cross-validation. The 50-seed plot is the moment the week lands. Show one learner's plot on the screen. Nested CV is the hardest code in the semester. Have a working version ready to share. Keep the last 45 minutes for the capstone modelling plan (see the lab). Check every plan for a split that could leak.

Week 11. Features and selection. Cyclic encoding needs a picture: hours on a circle. The leak to watch is casual and registered, which add up to the target. The lab drops them. Ask why. Launch the research challenge at the end of the session.

Week 12. Evaluation. Learners default to F1. The point of the week is that the threshold comes from money, not from a metric. Have them say the profit number out loud. The research challenge talks take the lab slot. Learners do the lab in their own time.

Week 13. Tuning and regularisation. Optuna's per-trial overhead surprises people. Its advantage is fewer trials, not faster ones. Learning curves are often misread. Ask for a diagnosis in words.

Week 14. Unsupervised learning. Learners trust the silhouette score too much. The Dry Bean lab lets them check it against hidden labels. In the anomaly task, watch for anyone using the labels to fit.

Week 15. Time series. Random splits creep back in. Check the split first. The naive baselines are the lesson. A model that loses to them isn't a failure. Shipping it would be. Use the end of the session to wrap up the semester and the capstone.

The research challenge

The research challenge runs over weeks 11 and 12. Pairs research one metric from beyond the book and teach it to the class.

  • Week 11. At the end of the session, pairs claim metrics on a shared list. Each metric goes once. There are 14 on the menu. With more pairs than that, let two pairs share a metric on different data.
  • Week 12. The talks take the lab slot: five minutes each, plus a minute for a question. Fifteen pairs fill about 90 minutes. For a larger class, split into two rooms.
  • Marking. Done or not yet, against the checklist on the challenge page. It isn't graded. Read the cards after the session. The failure case is where most pairs fall short: "it can mislead" isn't enough without a concrete input.

A strong talk makes the class able to say when to use the metric. After each one, ask: "When would you use this instead of F1 or ROC-AUC?"

The quizzes

Quizzes are open: unlimited retakes, with feedback after every question. They're for learning, so don't supervise them. Ask for 80% on each before the exam.

The exam

The exam has 40 questions, two per chapter, none from the quizzes. It gives no feedback until the end. It runs in the browser, so the answers are in the page source.

  • Self-study and low-stakes classes: let learners sit it at home, with the 90-minute timer on.
  • Formal assessment: run it in a supervised room with the timer on, or write your own paper from the chapter exercises.

The pass mark is 80%.

Marking the capstone

Use the rubric on the capstone page. Mark each criterion separately. The pass rule is meets on every criterion, so a weak criterion is a fail even when the rest is excellent. Tell the learner exactly what's missing, and allow one resubmission.

  1. Run the automatic checks first: a fresh clone, the notebooks run, the files exist, and preprocessing sits in pipelines. Return anything that fails without a mark.
  2. Read the report before the code. Could the decision-maker act on it?
  3. Then read the code for validation: where is the test set used, and how often?
  4. Give one sentence of feedback per criterion. Name the cell of the rubric the work is in.

Allow about 45 minutes per project. Moderate a sample of five: two markers mark the same projects blind, then compare.

Accessibility

  • The slides work with a keyboard and a screen reader. Each slide is announced as it changes.
  • If you record lectures, add captions.
  • Labs ask for charts. Ask learners to give each chart a title, axis labels, and a sentence that states the finding. The sentence also serves as a text alternative.
online /teaching/semester-1/guide Newcastle, UK v0.1.0 // rss