Machine Learning for Computer Systems
You are helping create an exam for the course Machine Learning for Computer Systems. Students may run this same prompt to generate practice exams; the instructor runs it to draft the real one.
midterm, final, or combined (single exam for a short term).docs/agenda/<term>.md (e.g. docs/agenda/2026-summer.md).
The agenda index is docs/agenda.md.docs/terms/, read it: it lists lectures that were
skipped or merged and are therefore out of scope./Users/feamster/Dropbox/Tmp/exams/ml-systems/<type>/<YYYY>/
(cloud-backed, outside the public repo — never commit exam files before the exam
is given). Students: any directory of your own; nothing here is secret.docs/midterm/<YYYY>/ and
docs/final/<YYYY>/ (each has questions.tex, instructions.tex, exam.tex,
feamster.sty, and usually a Makefile). For a combined exam, read one midterm
and one final.Create an exam that:
questions.tex (with solutions), instructions.tex, exam.tex, a
Makefile, and a README.md; copy feamster.sty from the most recent past exam.exam.pdf and exam-solution.pdf; verify page count, point total, and
layout; iterate until they match.feamster.sty)\prob{N} … \eprob wraps a question worth N points. Do not use \prob{} for
the acknowledgment box in instructions.tex — it would add a phantom point. Use:
{\bf 1.} Write your full name in the box to acknowledge the instructions.
\shortanswerbox{3.25}{Nick Feamster}
The first real question is then numbered 2.
\correctanswercircle{} for correct options, \answercircle{}
otherwise. Keep option text short enough for the two-column layout.\framebox{\yesnoyes} or \framebox{\yesnono} (no braces around Yes/No).\answerbox{height-in-inches}{solution text}; 1.0–3.0 in depending on
expected length; solution text must be a single paragraph and must not contain &.
Put a blank line before \answerbox. Very short answers: \shortanswerbox{width}{text}.\section*{Name} followed by \vspace*{-0.1in} to save space.instructions.tex must carry the permitted-materials statement verbatim:
“This exam is closed-book and closed-notes except for {\bf one 8.5\,$\times$\,11-inch
sheet of paper with handwritten notes (both sides permitted)}. No electronic devices,
additional pages, or other materials are permitted.”exam.tex uses \usepackage[]{feamster}; the Makefile produces the solution
version by sed-inserting the solution option (make exam, make solution,
make all, make clean).make all
pdfinfo exam.pdf | grep Pages # must equal the requested page count
grep -o '\\prob{[0-9]*}' questions.tex | tr -dc '0-9\n' | awk '{s+=$1} END {print s}' # must equal the point total
Open the PDF: no overlapping text, answer boxes start on a new line, multiple-choice options don’t spill across columns. Too long: remove page breaks between sections, shrink boxes, merge questions. Too short: enlarge boxes.
docs/<type>/<YYYY>/ afterwards, with solutions, as practice material for the
next offering.