Skip to content
Back to skills

Training And Evaluation

ASecurity

"Use HighwayEnv safely as an RL training, rollout, evaluation,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolspythongobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill training-and-evaluation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Training And Evaluation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Training And Evaluation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-and-evaluation-b5ce45b2/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-and-evaluation-b5ce45b2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: training-and-evaluation
description: "Use HighwayEnv safely as an RL training, rollout, evaluation,
  rendering, and recording target."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# Training and evaluation sub-skill

Use this sub-skill when an agent needs to run bounded rollouts, smoke-test an environment before training, integrate optional RL libraries, evaluate learned policies, use vectorized environments for RL, configure pixel/video evaluation, or avoid unbounded HighwayEnv training loops.

## Routing boundaries

- For choosing environment IDs, versioned environment names, reset/step basics, `render_mode` basics, registration, finite-MDP helpers, and general vectorized Gymnasium operation, read `../simulation-environments/SKILL.md`.
- For observation, action, reward, `info["rewards"]`, goal/success, image-observation, or continuous-action configuration decisions, read `../observations-actions-rewards/SKILL.md`.
- For custom roads, vehicles, dynamics, custom environment classes, or changing transition/reward internals, read `../road-vehicle-dynamics/SKILL.md`.
- Use this sub-skill only after the package imports and a basic environment can be created.

## Runtime references and helper

- Read `references/rl-integration.md` before using HighwayEnv with Stable-Baselines3, Torch, rl-agents, vectorized training, image observations, or policy evaluation. It includes optional dependency boundaries, Gymnasium-compatible loop patterns, SB3 DQN/PPO skeletons, and bounded evaluation patterns.
- Read `references/rendering-and-recording.md` when rendering during evaluation, collecting `rgb_array` frames, using image observations, recording videos, or diagnosing too-fast videos and headless display behavior.
- Read `references/troubleshooting.md` when training fails, videos are blank or too fast, optional RL imports are missing, Gymnasium/SB3 API signatures mismatch, image/CNN shapes fail, vectorized environments fail, or policies are unexpectedly poor.
- Run `scripts/random_policy_rollout.py` for a no-RL-dependency smoke test that samples random actions for a bounded number of episodes and steps, optionally renders `rgb_array` frames, and can write a JSON rollout summary.

## Safe default workflow

1. Confirm installation and environment creation with the root skill or simulation sub-skill.
2. Run a bounded random-policy smoke test before any RL training:
   ```bash
   python scripts/random_policy_rollout.py --env-id highway-v0 --episodes 1 --max-steps 20
   ```
3. If training with optional RL libraries, start from the skeletons in `references/rl-integration.md`, keep `total_timesteps` small for the first validation run, and evaluate with a hard episode and step cap.
4. If recording video, use the pattern in `references/rendering-and-recording.md` and always close the wrapped environment.

## Handoff contract

A successful use of this sub-skill should produce one or more of:

- a bounded smoke-test result with episode return, steps, termination/truncation status, and crash/success summary;
- an RL integration plan that explicitly lists optional dependencies and safe training/evaluation limits;
- a recording plan that uses `rgb_array`/`RecordVideo` safely and avoids too-fast videos;
- a clear route to another sub-skill if the blocker is environment selection, observation/action/reward configuration, or custom dynamics rather than training/evaluation.

Files in this skill

  • SKILL.md3.4 KB
  • references/rendering-and-recording.md5.1 KB
  • references/rl-integration.md8.9 KB
  • references/troubleshooting.md5.7 KB
  • scripts/random_policy_rollout.py9.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.