Skip to content

Commit f7d834b

Browse files
committed
updated CARD
1 parent e83d181 commit f7d834b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

book/quarto/contents/vol1/ml_systems/ml_systems.qmd

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,10 +781,28 @@ The TinyML lighthouse, **Keyword Spotting (KWS)**\index{Keyword Spotting (KWS)!T
781781
```{python}
782782
#| echo: false
783783
#| label: doorbell-scorecard
784+
# ┌─────────────────────────────────────────────────────────────────────────────
785+
# │ DOORBELL SCORECARD (FIGURE)
786+
# ├─────────────────────────────────────────────────────────────────────────────
787+
# │ Context: Lighthouse model evaluation
788+
# │ Goal: Visualize the radar plot scorecard for the smart doorbell application
789+
# └─────────────────────────────────────────────────────────────────────────────
790+
791+
# ┌── 1. CANVAS ────────────────────────────────────────────────────────────────
792+
# │ Initialize the visualization modules
784793
import mlsysim
785794
import matplotlib.pyplot as plt
795+
796+
# ┌── 2. ARRAYS ────────────────────────────────────────────────────────────────
797+
# │ Load the evaluation data for the Doorbell scenario
786798
doorbell_eval = mlsysim.Applications.Doorbell.evaluate()
799+
800+
# ┌── 3. RENDER ────────────────────────────────────────────────────────────────
801+
# │ Plot the radar scorecard using the mlsysim helper
787802
fig, ax = mlsysim.plot_evaluation_scorecard(doorbell_eval)
803+
804+
# ┌── 4. DECORATE ──────────────────────────────────────────────────────────────
805+
# │ Display the figure
788806
plt.show()
789807
```
790808

0 commit comments

Comments
 (0)