Compare a learned approach with a scripted baseline

Choose the simpler working approach using the same task and failure criteria.

Exercise brief·Intermediate·3 min read

Opening the Python editor…

Requirements and learning goals

Before you start

  • A repeatable task
  • Two candidate approaches

You will be able to

  • Build a fair comparison
  • Report abstention and errors
  • Choose based on task evidence

The browser exercise above works without extra setup. The project brief below assumes the listed prerequisites and gives you a task and checks to perform. Need a guided first project?

A scripted controller follows rules you write; a learned component predicts behavior from training examples. Learning can handle varied inputs, but adds and unfamiliar failure modes. This exercise compares a command parser with a learned intent parser on identical requests, so you can decide whether the added complexity helps your demo.

Deploy both variants through the same build workflow and retain the same sensor inputs and success checks for a fair comparison.

Hold the task constant

Compare approaches against the same observations, start states, and completion criteria. A language model that receives a rich scene description has more information than a detector that receives only pixels. Such a comparison measures the input advantage as well as the model.

For a first project, compare a bounded command parser with a learned intent parser. Both must choose from the same supported skills and target vocabulary. Use requests containing clear commands, paraphrases, ambiguous targets, and unsupported tasks.

Checkpoint 1 of 2

A learned parser receives a written scene description. The scripted baseline receives only detector labels. The learned parser scores higher. What does this comparison measure?

Commit to an answer. Every choice explains itself.

Score a small suite

expected = ["stop", "find", "clarify", "unsupported"]
scripted = ["stop", "unsupported", "clarify", "unsupported"]
learned = ["stop", "find", "approach", "unsupported"]
 
for name, outputs in [("scripted", scripted), ("learned", learned)]:
    correct = sum(a == b for a, b in zip(expected, outputs))
    risky_guess = sum(a in {"clarify", "unsupported"} and b == "approach"
                     for a, b in zip(expected, outputs))
    print(name, correct, "correct;", risky_guess, "unsafe guesses")

Both get three cases right, but their errors differ. Count inappropriate actions separately from harmless refusals. Also record latency, dependency failures, and how often a human must clarify.

Checkpoint 2 of 2

Each parser makes one error. Scripted returns unsupported where find was expected. Learned returns approach where clarify was expected. Why does the script count only the second as an unsafe guess?

Commit to an answer. Every choice explains itself.

Inspect where learning helps

The construction drone demo uses language interpretation for bounded requests while a separate controller handles flight references. The ROSMASTER demo keeps braking independent of generated remarks. These are useful patterns for assigning responsibilities.

Common snag: comparing a polished learned system against an intentionally weak baseline. Give each approach the same supported inputs and reasonable tuning effort.

Finish with a short decision: which approach you will use, which failure drove the choice, and what remains unknown. Optional extension: test new phrasing or a new scene without retuning, then report the change.

Can you do each of these?

  • Build a fair comparison
  • Report abstention and errors
  • Choose based on task evidence

0 of 2 checkpoints solved. Try checkpoint 1

Previous: Record the evidence around a failed action
All lessons in this topic
  1. 1. Run a VLM on a live camera
  2. 2. Understand vision-language-action models
  3. 3. Inspect a VLA action chunk
  4. 4. Ground a request in supported robot skills
  5. 5. Connect perception to action without blocking control
  6. 6. Record the evidence around a failed action
  7. 7. Compare a learned approach with a scripted baseline

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.