Beta

Sync to cloud

Uses your current signed-in YoolVi account. A Learn profile is not required.

Upload a snapshot of this browser’s saved lesson work across all subjects, including notes, experiments, journal and review history. Existing guest work is included only when you confirm below. This does not upload account credentials or award XP.

Sync uploads to your private account; it does not automatically merge or replace this device’s work. On another device, download the cloud copy and use My Learning’s backup import. The previous cloud snapshot is retained when a new one replaces it.

Export or import this device’s work

No background uploads. Edits made after a snapshot need another sync. On shared devices, work is bound to the first account observed by cloud sync; another account must use a separate browser profile. Keep your own downloaded backup too.

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Back to Feedback and dynamics

Shared AI lesson · Feedback and dynamics

Explain: Continuous control

READ & CONNECT

Understand what changed.

Back to the experiment

A shorter explanation, with the original worked examples available below. Both explain the same experiment and its limits.

Same learning goal in both modes: Fit a bounded imitation policy and evaluate how quantization, actuator limits and observation noise affect control.

The idea in everyday terms

A discrete controller chooses from a menu of forces. A continuous controller can choose a numerical force within an interval. Rounding a continuous output back to a few values can change the response even when the model weights stay fixed.

What to watch in the experiment

Compare the same trained policy with continuous and quantized actions, then inspect how force limits change the applied action. Track observed inputs, requested output and actual movement through the simulator.

What this does not establish

The learned mapping is bounded by its training coverage and the declared dynamics. Smooth output does not guarantee successful or safe control, and temporary captures are practice rather than independent evidence.

Open the full worked examples, calculations and limitations

This is the same reference used in Technical mode. Expand it whenever you need the exact numbers, assumptions or further explanation.

An action can be a number

Some agents choose from a menu; others output a quantity such as force. A continuous action can vary within a numerical interval. A discrete action selects one of finitely many choices. This lab compares a force in −4 to +4 newtons with the three choices −4, 0 and +4 N.

The comparison keeps the learned model fixed. The discrete version rounds the same model’s output to the nearest allowed choice, with exact halfway ties going to zero. It is not a separately trained discrete-action policy, so the result should not be generalized to all discrete controllers.

Learn from a known controller

An authored feedback rule supplies training labels: clip(4 × position error − 4 × velocity, −4, 4) N. We deliberately know how the teacher works. That makes it possible to inspect the data and test the training implementation without claiming that the teacher is optimal.

The learner is a small neural network: two inputs, four hidden tanh neurons and one tanh output. Each hidden neuron has two weights and a bias; the output has four weights and a bias. That totals 17 parameters. Multiplying its final tanh by 4 bounds the predicted force to ±4 N.

Training compares the normalized output with the teacher force divided by four. The half-squared errors are averaged over the training rows. All parameters change simultaneously using those gradients. Displayed mean absolute error, or MAE, converts predictions back to newtons for interpretation.

Coverage matters more than a reassuring average

The full training set contains 25 error/velocity pairs. A deliberately restricted alternative contains only five rows where velocity is zero. A learner may fit these resting examples well without learning how to brake a moving cart.

Sixteen offset coordinate pairs form a disjoint development grid. They do not supply gradients, but repeated inspection makes them development evidence, not an independent final test. These are authored synthetic states and labels, not a measured robot dataset.

A rollout can also visit observed states outside the training region. The lab counts those samples. With restricted training, nearly every moving state is outside the observed velocity line. A bounded output remains possible there, but boundedness does not establish a correct action.

Separate policy, representation and actuator

The inspector exposes three stages. First the policy computes a raw force. Second the chosen action representation either keeps it continuous or quantizes it to three choices. Third the actuator clips that request to its own force limit.

For example, a continuous request of 3 N and a quantized request of 4 N both become 1 N when the actuator limit is ±1 N. Their applied forces coincide for that instant even though their policies differ. The same limit applies to the authored reference controller.

Saturation restricts force, not position, speed or collision risk. Those quantities require separate operating checks. This lesson stops only at broad numerical bounds and does not claim those bounds make a controller safe.

Evaluate the loop, not only a table of labels

All controllers start the same one-kilogram cart at rest, with a one-metre target. Each applied force changes velocity and position; the next observation therefore depends on earlier actions. Small prediction errors can change the future states being visited and compound over time.

Noise is added independently to measured position and velocity. Each controller receives the same seeded sequence of offsets, but its measurements still differ because its true trajectory differs. This is a matched comparison under one reused noise realization, not a broad robustness study. The true state remains a diagnostic; it does not silently replace the noisy controller input.

Freeze a model before running the comparison. Later training does not change that historical result. Replacing it requires another explicit comparison, which is still repeated development practice. No rollout trains the network or adds teacher labels.

Smoothness is only one outcome

The lab reports total variation of applied force: sum the absolute changes between successive applied forces. This measures how much the command changes at the sample rate. It excludes the initial jump and is not mechanical jerk, energy use or a complete wear model.

Inspect force variation alongside target error, final velocity, saturation, coverage and run status. A controller that does nothing can look perfectly smooth. A run that stops early can accumulate less variation simply because it has fewer actions. Neither should win on that number alone.

The last-half-second criterion checks sampled position and velocity near the target. It does not establish infinite-horizon stability. Fixed plots and clipping counts retain visible failure evidence.

Report the experiment’s limits

For guided practice, compare the same trained model with continuous and quantized outputs, then lower the force limit. For implementation practice, check all parameter gradients and replay the cart’s dynamics from exported applied-force receipts. For a decision brief, state the data coverage, model checkpoint, noise sequence, actuator limit and failed outcomes.

Three temporary captures preserve bounded comparisons. They are practice artifacts, not authenticated training histories, independent implementation review or completed learner pilots. The next operating-limits lesson adds explicit runtime constraints and fallback decisions.

Notes, help and related ideas
My notes and reflection
CURIOSITY JOURNAL

What will you take away?

Keep a private reminder for yourself.

Loading your journal…

Add a short reflection

Open your journal or back it up.

Prerequisites and related ideas

Key terms: