评估

其他 社区

技能解读

当前原文的自动摘译,尚未人工审校。

路径分辨率

用户可以提供: .pt 文件:直接使用 (--path /tmp/.../actor_999.pt) 运行目录:包含 actor*.pt 文件 (--path /tmp/.../26-03-07-00-26-36_cartpole/) logdir:包含带时间戳的运行子目录 (--logdir /tmp/training_runs) 如果未给出路径,请检查 /tmp/training_runs 以获取最近的运行。

选项

标志 · 默认 · 描述 --ep-len · 10 · 以秒为单位的剧集长度 --seed · 无 · 用于可重复评估的随机种子 --out-dir · 无 · 保存视频的目录

使用说明

根据用户的输入解析模型路径。如果不明确,请列出可用的检查点并询问。向用户显示将评估哪个检查点(完整路径)。运行评估命令。这将打开一个交互式 MuJoCo 查看器窗口 - 它不是后台作业。完成后报告结果。

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
通用
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
94 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@rohanpsingh · BSD-2-Clause
上下文用量评级
低消耗
接入复杂程度
即装即用
是否需要外部接口密钥
不需要
兼容的系统
未声明(默认跨平台)
运行环境要求
Python
检测到的文件与系统行为
  • 只读
网络行为
仅限本地
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# /eval — Evaluate a Trained Checkpoint

Parse the user's request from `$ARGUMENTS` and run evaluation.

## Command Template

```
uv run python run_experiment.py eval --path <PATH> [OPTIONS...]
```

## Path Resolution

The user may provide:
- **A .pt file**: Use directly (`--path /tmp/.../actor_999.pt`)
- **A run directory**: Contains actor*.pt files (`--path /tmp/.../26-03-07-00-26-36_cartpole/`)
- **A logdir**: Contains timestamped run subdirectories (`--logdir /tmp/training_runs`)

If no path is given, check `/tmp/training_runs` for the most recent run.

Use `Glob` to verify the path exists and resolve it before running.

## Options

| Flag | Default | Description |
|------|---------|-------------|
| `--ep-len` | 10 | Episode length in seconds |
| `--seed` | None | Random seed for reproducible eval |
| `--out-dir` | None | Directory to save videos |

## Instructions

1. Resolve the model path from the user's input. If ambiguous, list available checkpoints and ask.
2. Show the user which checkpoint will be evaluated (full path).
3. Run the eval command. This opens an interactive MuJoCo viewer window — it is NOT a background job.
4. Report the results when done.

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。