Syllabus Lesson 243 of 246 · Module 23: Capstone studio: a model card you can run
Module 23: Capstone studio: a model card you can run

Export and replay

Why it matters A result someone else can rerun is worth more than one they must take on trust. Your whole project fits in one offline file: the card, every curve, and the log with the settings to rerun each run.

studio.export_html(log, card) builds a single HTML page with no scripts and no links out. Print it, and the Download button saves it as model-card.html on your device. Nothing is uploaded.

Then replay: studio.replay(track, log.entries) reruns every logged run from its settings and returns the largest difference from the logged curves. On the same device it should be 0; on another machine, float differences may leave a few in the fourth decimal.

Words and symbols in this lesson
baseline
the plain run every change is measured against, over the same seeds
replay
rerunning each logged run from its settings and checking the curves match
Your turn

Paste your card, build html, set replay_gap, and print(html) last.

Spotted a problem in this lesson? Report it · Ask about this lesson

This exercise opens soon

Finish the lesson before it and this one unlocks. The whole course is free, no account needed, and you can read this lesson right now.