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.
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.
make drive keysIn this lesson
- Open Inspect, then dataset. It is empty until there is a recording.
- 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.
- Record a second, different episode: end it with the tool on the arm's right, y below −0.08.
Joints · SO-101 follower
1–5 joint · , . jog · [ ] jaw · - + step · h home · f frames
the keys of make drive
The buttons do what the keys do: hold one to repeat.
Limits from the description; speed capped at 1.7434 rad/s, the servo's datasheet derated. Poses from the profile.
Inspector
Code
The repository's own code behind what you do here appears once you move the arm.
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.