Lab 1

Due: September 17, 2026 (9 points)

Part 1 is due Friday, September 11 at 11:59pm ET.

In Part 1 you will set up a local uv environment, load and explore the 20 Newsgroups corpus, and train and tune topic models on it. Nine questions, with demonstrations and scaffolding in between.

Starter notebook

lab1_pt1.py

Required Deliverables

You will submit lab1_pt1_yourandrewid.py and model_history_yourandrewid.csv

The notebook appends every run to model_history.csv next to itself as soon as it finishes training. Please simply rename the file and submit it along with the notebook

uv run marimo edit for the browser interface (Clara does this), OR the marimo extension on VSCode (Sireesh does this)

Prohibited

Explicitly not required