Learning, and the capstone · University · about 30 min
What learning buys over a hand-written rule, what it costs, and the smallest honest example.
position() in this module[1 mark]Which three things must be present for there to be anything to learn?
Tick every answer that is true.
[1 mark]The data sheet says 20 cm/s at command 100. The robot drives at command 60 for 4 s and travels 44.2 cm. What does this print?
nominal = 20.0 * 60 / 100.0 * 4.0 measured = 44.2 print(nominal, measured, round(measured / nominal, 3))
[1 mark]What is the name for the family of candidate answers a learner chooses between, such as all straight lines with a slope and an intercept?
[1 mark]A robot tries lateral offsets on short trials and keeps whichever scores best. Which setting is this?
[1 mark]Which of these is a poor use of learning?
[1 mark]In this module position() is available. What is the rule for using it?
[1 mark]The single gain from one 4 s run predicts the robot's travel better than the data sheet. What is still missing?
Print nominal: the travel the data sheet predicts at command 60 for 4 seconds, measured: what this robot actually did, and gain: the ratio.
from bugbot import * connect() CMD = 60 SECONDS = 4.0 V_MAX = 20.0
Plan your program here, then type it in and press Run.