Evaluation¶
Use FINEST’s shared evaluator to compare trained policies on the same task, backend, mode and profile. It connects to a policy service, checks artifact compatibility, records each rollout and reports success, simulated time and wrist-load peaks.
Run an evaluation¶
Start a policy service, then use a second terminal for the simulator:
CONDA_ENV=finest bash eval_policy.sh \
regular_insert sb3/default 200000 --check-server
CONDA_ENV=finest bash eval_policy.sh \
regular_insert sb3/default 200000
The positional arguments are task, backend/profile and starting seed. The profile’s eval.yaml sets policy_endpoint and policy_evaluation, including episode count, rollout horizon and video settings. For GPU evaluation, choose an mjlab profile and CONDA_ENV=finest-mjlab.
To control the episode count, output location or video selection for an individual run, use the Python entrypoint in the appropriate environment:
python -m script.eval_policy \
--config config/regular_insert/sb3/default/eval.yaml \
--seed-start 200000 --episodes 10 \
--output-dir /absolute/path/to/evaluation/run \
--video-policy failures
This entrypoint evaluates a served IL policy. To evaluate an RL expert directly, use python -m script.rl.eval as shown in the quickstart.
Find your results¶
The evaluator prints its output directory. With default paths, results are organized below <output root>/evaluation/ by task, backend, profile and mode, with a policy subdirectory when configured.
File |
What it contains |
|---|---|
|
Aggregate results, metric definitions and group statistics |
|
Per-episode outcome, time and load metrics |
|
Control-step records |
|
The configuration used for the run |
|
The evaluated policy’s declared identity |
|
Basic metric distributions for insertion tasks |
Videos and terminal frames are saved according to the profile’s video policy. To resume a compatible interrupted run, repeat the original command with --resume; keep the policy, environment and evaluation identity unchanged.
Read the metrics¶
Metric |
Definition |
|---|---|
Success |
The task criterion holds for the required consecutive frames, and the evaluated rollout contains no invalid physics |
Success rate |
Successful completed episodes divided by completed episodes |
Simulated completion time |
For success: control steps through the first stable-success frame × control timestep |
Failed-episode duration |
Executed simulation duration, recorded as a right-censored observation |
Wrist-force peak |
Maximum norm of the processed wrist force over the full rollout |
Wrist-torque peak |
Maximum norm of the processed wrist torque over the full rollout |
Processed wrench follows the environment’s tare and filter configuration. Reports record the tare setting and EMA coefficient. Peaks include the full rollout, including non-contact portions.
If stop_on_stable_success is false, the policy may continue after first reaching stable success. Completion time still refers to that first frame; rollout_sim_time_s describes the entire rollout. A later invalid-physics sample makes the episode a failure even if it previously reached stable success.
Compare runs consistently¶
Keep task, assets, mode, backend, seed protocol, time limit and force-processing settings consistent when comparing policies. Report the number of completed episodes and account for crashed or missing runs.
To compare demonstration types and force feedback, vary the training data and F/T input independently. Use variants of the same architecture with equal demonstration counts and training budgets. See research design for the four comparison groups and available input options.
The paper’s TMCF/TMCT summarize the largest 5% of loads over contact timesteps. The current evaluator reports full-rollout peaks instead; label these metrics explicitly rather than comparing them as the same statistic.
Simulation duration is not wall-clock runtime. A failure’s recorded duration only says how long it was observed; averages that include failed episodes do not estimate the expected time to success.
Report experimental grasp workflows separately from insert_only results. The evaluator does not report detailed failure categories or AA/MA contact-mask statistics. Short smoke runs check execution and finite signals; use trained-checkpoint evaluations to measure policy performance. Completed checks are listed in test results.