ml-systems

Machine Learning for Computer Systems

View the Project on GitHub noise-lab/ml-systems

Instantiation of generate-exam.md for the standard final. Read that file for the LaTeX conventions and workflow; use these parameters.

Parameter Value
Exam type final
Agenda docs/agenda/<term>.md, Meetings 9 onward (supervised models, deep learning and nPrint, unsupervised learning, generative models), with light reference back to the pipeline material. The final is not cumulative: the first half of the course (data acquisition, representation, preparation, the pipeline) belongs to the midterm, and the instructor’s “cumulative only as far as life is cumulative” line in class is a joke, not a scope statement
Past exams docs/final/<YYYY>/ — the two or three most recent. From 2026 on, each also carries rubric.yaml (how it was scored), grading-notes.md (decisions made while giving it), and analysis.md (where the class split from the key): read those three first, and do not reuse a question they mark as ambiguous
Length 6 pages, 50 points, designed for 30–40 minutes; ends with a 2-point feedback section. Four pages was tried in 2026 and was too crunched to write in; six pages with generous boxes was what went to the copier. The total stays at 50: a question added late takes its points from existing ones
Must include questions on the hands-ons the agenda records in the meeting range (typically regression, trees and ensembles, deep learning, PCA, clustering, generative models) and on the project deliverables; every final flag in the range
Instructor output /Users/feamster/Dropbox/Tmp/exams/ml-systems/final/<YYYY>/ (not committed until after the exam; when the instructor publishes it to docs/final/<YYYY>/, rubric.yaml, grading-notes.md, and analysis.md from the grading directory in instructor-data go with it, never the scores or review pages)

For the three-week offering, which has a single combined exam, use generate-combined.md instead.

The checking pass in the base prompt applies in full: four independent checkers, the question-type mix table against the most recent exam of this kind, and the key table, all shown to the instructor before the exam is final.

Layout lessons (Autumn 2026)

Rubric and autograder check (required before the copies are requested)

The exam is graded from the copier’s scans by ~/src/gradescope (the grade-exam skill). Set it up from this exam’s own solutions as soon as the draft is final, and run it again after every change to layout, points, or questions: a moved box, a new question, or a changed point value all change the template or the rubric.

  1. The course config in instructor-data needs an in-class assignment for the exam (key: final, weight: exams, in_class: true, the exam’s date and time as due:), so the gradebook has final_grade and final_notes columns. Add only those columns; do not let a gradebook rebuild rewrite other students’ cells.
  2. Create the grading directory and generate the rubric from the LaTeX:

    cd ~/src/gradescope
    .venv/bin/python -m gradescope init ~/Documents/teaching/noise-courses/instructor-data/exams/<YYYY>/ml-systems-autumn/final \
      --source ~/Dropbox/Tmp/exams/ml-systems/final/<YYYY> \
      --scans ~/Dropbox/Tmp/exams/ml-systems/final/<YYYY>/exam.pdf \
      --course-config ~/Documents/teaching/noise-courses/instructor-data/courses/ml-systems-autumn<YYYY>.yaml \
      --key final --title "ML for Systems Final, Autumn <YYYY>"
    .venv/bin/python -m gradescope template <exam_dir>    # must report the right page count and no PROBLEM line
    .venv/bin/python -m gradescope rubric <exam_dir> --force
    .venv/bin/python -m gradescope selftest <exam_dir>    # must PASS
    

    init needs the scan file to exist, so point it at exam.pdf first; afterwards set scans: in exam.yaml to <exam_dir>/../final-scans/final-master.pdf.

  3. Drawn answers are graded only if they are marked. A question answered by drawing in a figure (a tree partition, a line through a scatter plot) wraps the drawing in \answerfigure{<model answer>}{<tikz drawing>} from feamster.sty. The macro records the figure’s corners in the .aux file, template turns them into an image-graded part, and the model’s grade compares the student’s drawing with the model answer. A drawing without the macro is invisible to the grader.
  4. Read rubric.yaml against the exam. Every question’s points match \prob. A yes/no question is split into one point for the circle and the rest for the explanation. Every written part carries its solution as the criterion. No part rounds to zero or a negative value: a question split across many boxes (eight matching letters for two points) gets an exact fraction per box. Add a note: wherever the solution accepts an alternative answer.
  5. Grade a filled sample once: point scans: at work/selftest/filled.pdf, run template, scan, read, grade, report. The key exam should lose points only where the fake handwriting truncated a long answer. Then delete the outputs and work/, and restore scans:.
  6. Commit exam.yaml, rubric.yaml, overrides.yaml and .gitignore to instructor-data, staging only those paths. The exam itself stays in Dropbox until it has been given.