Skip to content

Revamp the workshop for a one-hour live session - #47

Open
Girish-Krishnan wants to merge 6 commits into
mainfrom
cursor/revamp-workshop-visuals-e1d8
Open

Girish-Krishnan wants to merge 6 commits into
mainfrom
cursor/revamp-workshop-visuals-e1d8

Conversation

@Girish-Krishnan

@Girish-Krishnan Girish-Krishnan commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

What this is

A pass over the SIPP Python/ML workshop so a fresh clone can survive the live hour, the explore-on-your-own sections look like one course, and there is a robotics hour that ties back to the candy belt.

Section 0 is still the live 60-minute session. The other folders are self-paced. Applications moved from 9_ to 10_ so robotics can sit next to reinforcement learning.

New structure

Folder Role
0 0_Introduction Live hour. Handmade color rule, then logistic regression. CNN and ResNet are a short trailer of saved figures.
1 1_Foundations Tables, iris, digits, missing data.
2 2_Supervised_ML Line fit, neighbors, a drawn decision boundary.
3 3_Unsupervised_ML k-means (with an elbow) and PCA.
4 4_Deep_Learning Small MLP/CNN/autoencoder on CPU subsets.
5 5_NLP Tokens, bag of words, a feelings ruler. Transformers and spaCy are optional.
6 6_OpenCV vision.ipynb on a still photo. Webcam scripts take --camera.
7 7_Time_Series CO₂, moving average, seasonal split, holdout forecast.
8 8_Reinforcement_Learning Cart-pole and a mountain-car pump controller. Humanoid is an honest skip.
9 9_Robotics PD cart-pole, a heavier pole, pendulum hold, two-link arm, imitation.
10 10_Applications OCR, waveform, GrabCut, toy denoising. Heavy models are opt-in.
Projects Dataset starters, robotics project ideas, responsible_ai.md.

The root README is the landing page: mermaid learning path, section table, a Colab badge for the live notebook, then git clone plus requirements-lite.txt / requirements.txt / requirements-full.txt.

Section 0, and why the photos are drawings

The Kaggle candy set is about 2.74 GB and account-gated, and it was gitignored, so a fresh clone died at the first data cell. Those photos are not redistributed here.

sippkit/candy.py draws 128×128 photos (36 per class per level) and commits them:

  • Level 1, handmade center-box rule: 100%
  • Level 2, same rule: 35.2% (the center box sees belt)
  • Level 2 logistic regression on colorful-pixel features, held-out: 84.8%
  • MLP on the same six features: 81.8% test (the algorithm was not the bottleneck)
  • Tiny CNN, 40 epochs, 48×48: 84.8% test
  • Frozen ResNet-18, 12 updates of the last layer: 87.9% test

The live path stops at logistic regression. The trailer prints those saved numbers and shows assets/trailer_mlp.png, assets/feature_maps.png, and assets/cnn.gif. Training them again is behind REGENERATE = False. Setting that flag to True retrains the MLP, the 40-epoch CNN, and a frozen ResNet-18 (which downloads ImageNet weights the first time). Speaker notes, a think-pair-share, and a one-sentence "why did it recover?" beat are in the notebook.

Round 1 review

Commit 8d01bff answers the first learner pass. Commit 2d52ea6 keeps the figure check on the lite install: the denoising hero blurs with a box filter, so that job no longer imports OpenCV.

  • Root README has the Section 0 Colab badge, and the laptop instructions start with git clone.
  • The trailer prints the saved results (MLP 81.8%, CNN 40 epochs 84.8%, frozen ResNet 87.9%) and shows assets/trailer_mlp.png, assets/feature_maps.png, and assets/cnn.gif. workshop.ipynb is about 2.7 MB, down from 8.4 MB.
  • The hour opens on a belt with three candies and a caption, not the empty conveyor.
  • 10_Applications/assets/hero.gif is 640 px wide, titled, and about 947 KB.
  • 0_Introduction/assets/level3.png is a new closer: five candies, one box each, labels above the boxes, alt text in the notebook. The notebook says real belt photos are messier.
  • Decision regions use all three candies. Squares, circles, and triangles sit on brown, orange, and green. The same change is the Section 2 hero.
  • Teaching GIFs play for about 5–7 s and rest on the last frame. The OpenCV hero is 640×360 and crossfaded. The Projects hero is 6 s.
  • "Ruler" is defined when the center box is drawn. "Invent a rule, as a class" is now "Invent a rule together."
  • Section 0's picture list is embedded. Changelog lines are gone from the student pages.
  • PCA has a digit colorbar. The time-series hero keeps fixed axes. The robotics learning curve climbs from a few steps to 120. cnn.gif is a flashlight sliding across a candy.
  • PD control is glossed as a spring plus a damper in the robotics intro.
  • The map connects unsupervised learning into deep learning. Section 7 is "Signals over time" in both the table and the diagram. Projects has its own hero.

How this was tested

CPU only, Python 3.12. The workshop, deep learning, language, and applications notebooks were re-executed after the polish pass. python3 tools/check_links.py and python3 tools/check_figure_text.py both passed. The figure job on 8d01bff failed with No module named 'cv2' because that job installs requirements-lite.txt only; 2d52ea6 fixed that and CI went green.

What was not tested

  • A real Colab click. Badges point at main, so they 404 until this merges.
  • Webcam, GPU, YOLO weights, Whisper, real Stable Diffusion, SAM, llama.cpp, spaCy, and a full CIFAR + Faster R-CNN run.
  • ipywidgets were executed under nbconvert. The static figures are in the saved outputs. The sliders themselves were not dragged in a browser.
  • REGENERATE = True was not run in CI. The live path leaves it False, so class and CI do not download ResNet weights.
Open in Web Open in Cursor 

cursoragent and others added 6 commits November 30, 2026 04:00
Ship a small synthetic candy set so Section 0 runs from a fresh clone, add a CPU robotics section, and give every explore folder a visual notebook, a working Colab badge, and scripts that finish without a webcam or a huge download.

Co-authored-by: Girish Krishnan <Girish-Krishnan@users.noreply.github.com>
The workshop job failed before any cell ran: this nbconvert refuses --execute --output unless --to notebook is set. Execute both core notebooks in place instead.

Co-authored-by: Girish Krishnan <Girish-Krishnan@users.noreply.github.com>
Long titles on the arm, k-means, and network GIFs were cut off at the canvas edge, and the seasonal-decomposition title sat above the figure. Shorter titles, constrained layout, and a text-extent check stop that from coming back.

Co-authored-by: Girish Krishnan <Girish-Krishnan@users.noreply.github.com>
Show saved trailer results instead of training in class, open on a belt with candy, and slow the teaching GIFs. Decision regions now use all three candies with distinct shapes, and the detection closer no longer stacks its labels.

Co-authored-by: Girish Krishnan <Girish-Krishnan@users.noreply.github.com>
…e lite install.

Co-authored-by: Girish Krishnan <Girish-Krishnan@users.noreply.github.com>
The trailer flag retrains the MLP, CNN, and frozen ResNet. The closer names how real belts differ, the unused conveyor photo is gone, and the large denoising GIF is smaller while staying 640 px wide.

Co-authored-by: Girish Krishnan <Girish-Krishnan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants