Theme
Tier 6 · lesson 5 of 9 · 40 min

Datasets, splits, and the leak you did not look for

You will: Build a dataset whose test set means something, and that can say where it came from.

Builds on A camera, and the geometry behind it.

A dataset is code's quieter cousin: it changes what a system does, and it is rarely versioned, reviewed or tested. This lesson treats it as software.

On the SO-101 a record is an episode: one demonstration from start to finish, with the joint positions, the camera frames and the commands, each with its time. Episodes are the unit of splitting. Split frames at random instead and the test set holds frames a twentieth of a second from training frames, the model looks brilliant, and the number means nothing — the leak you did not look for.

Every dataset also carries a manifest: the commit that recorded it, whether the tree was dirty, the robot profile, the world and how each episode was produced. A dataset that cannot say where it came from cannot be trusted, or reproduced, or deleted for the right reason.

Planned: the steps on the SO-101 are not written yet. The camera exists in Gazebo now (the lesson before), and so does a leader reader rehearsed on two fake buses. Waits on recording them: threevn_data records episodes with a manifest for the 3VN Arm 1 and has not been run on this arm, and real demonstrations need the physical leader arm.

In the simulation

Record episodes and look at them as data. The dataset view shows the last recording as 30 fps episode rows and downloads them as JSON. Splitting by episode, the manifest and the camera frames are planned; an episode as a unit is here now.

Kinematic: joints move at their real speed limit, but there is no gravity, no load and no physics.

The SO-101 loads as you reach it.

In this lesson

  1. Open Inspect, then dataset. It is empty until there is a recording.
  2. Press Record, drive the tool to the cube, on the arm's left, and press Record again to stop. That is one episode; its rows appear, 1/30 s apart, which is why frames must not be split at random.
  3. Record a second, different episode: end it with the tool on the arm's right, y below −0.08.

Terms

Episode
One recorded run from start to finish, the unit a dataset is split by.
Data leakage
Information from the test set reaching training, so a score measures memory rather than skill.
Dataset manifest
A record, shipped with the data, of what produced it: commit, profile, world and method.