mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 02:03:55 -05:00
[PR #1507] [MERGED] fix(lab04): remove answer spoilers from prediction prompts in lab_04_data_engr #7374
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1507
Author: @octo-patch
Created: 4/24/2026
Status: ✅ Merged
Merged: 4/24/2026
Merged by: @profvjreddi
Base:
dev← Head:iss1417-fix-prediction-spoiler-in-lab04📝 Commits (1)
754f056fix(lab04): remove answer spoilers from prediction prompts in lab_04_data_engr📊 Changes
1 file changed (+5 additions, -9 deletions)
View changed files
📝
labs/vol1/lab_04_data_engr.py(+5 -9)📄 Description
Fixes #1417
Problem
Parts B and C of
labs/vol1/lab_04_data_engr.pyshowed the numerical answer directly above the prediction radio button, allowing learners to read the answer before making their prediction:Transfer time = Dataset / Bandwidth = 50 TB / 10 Gbps = ~11 hours— the exact value of answer option C.error = 0.02 * 1.4^5 = 0.02 * 5.38 = 10.8%— giving away the ~15% answer.Solution
Remove the worked numerical examples from the context shown before the prediction radio button in Parts B and C. Replace with formula-only scaffolding so learners apply the formula themselves.
The full worked calculations remain available after the prediction is submitted:
Part A and Part D are not changed — Part A only shows the formula structure (not the numerical GPU utilization), and Part D shows that 99% is insufficient without revealing the required precision level.
Testing
Visually verified the diff: prediction radio buttons now appear before any numerical answer for Parts B and C. The post-prediction sections are unchanged.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.