exp_rpt_stack-php-large-v3
收藏资源简介:
exp_rpt_stack-php-large-v3是一个专门用于智能体评估和强化学习训练的PHP编码任务数据集,采用PHPUnit 10作为测试运行器。该数据集是其前身laion/exp_rpt_stack-php-large-v2的修复版本,主要修正了验证器端的一个关键缺陷:在原始v2版本中,测试脚本错误使用了PHPUnit 10中不存在的--fail-on-no-tests参数,导致所有测试运行失败并返回reward=0,无论解决方案的实际质量如何。v3版本对此进行了全面修复:将参数替换为PHPUnit 10正确的--fail-on-empty-test-suite;指定了正确的测试文件路径(/tests/TestSolution.php);添加了--bootstrap /app/autoload.php以确保PHPUnit能通过自动加载器解析解决方案类;并设置了--test-suffix=Solution.php以匹配测试类文件的后缀。数据集的奖励机制保持不变:仅当测试运行器返回码为0、PHPUnit报告至少运行了一个测试、且无失败和无错误时,才会给予reward=1的奖励。该数据集主要用于评估和训练能够生成正确PHP代码以通过特定单元测试的智能体。
exp_rpt_stack-php-large-v3 is a PHP coding task dataset specifically tailored for AI Agent evaluation and reinforcement learning training, which uses PHPUnit 10 as its test runner. This dataset is a patched version of its predecessor, laion/exp_rpt_stack-php-large-v2, primarily fixing a critical validator-side flaw: in the original v2 release, the test script incorrectly utilized the --fail-on-no-tests parameter, which does not exist in PHPUnit 10. This bug caused all test runs to fail and return a reward of 0, regardless of the actual quality of the submitted solution. The v3 release comprehensively resolves this issue by replacing the invalid parameter with PHPUnit 10's valid --fail-on-empty-test-suite option, specifying the correct test file path (/tests/TestSolution.php), adding the --bootstrap /app/autoload.php flag to ensure PHPUnit can resolve solution classes via the autoloader, and setting the --test-suffix=Solution.php to match the suffix of test class files. The dataset's reward mechanism remains unchanged: a reward of 1 is only awarded when the test runner returns an exit code of 0, PHPUnit reports that at least one test was executed, and there are no test failures or errors. This dataset is primarily used to evaluate and train AI Agents capable of generating correct PHP code to pass specified unit tests.
数据集概述:exp_rpt_stack-php-large-v3
基本信息
- 许可证:Apache-2.0
- 数据集名称:exp_rpt_stack-php-large-v3
- 数据集地址:https://huggingface.co/datasets/laion/exp_rpt_stack-php-large-v3
数据集描述
该数据集包含PHP编程任务,用于智能体评估和强化学习训练。数据集使用PHPUnit 10测试运行器。
版本演变与修复
该数据集是 laion/exp_rpt_stack-php-large-v2 的重新修补版本,主要修复了验证器侧的缺陷,该缺陷导致所有质量检查(QC)通过时出现0%的解决率。
原版本(v2)问题
tests/test.sh中使用了--fail-on-no-tests参数- 但 PHPUnit 10.5.63 版本(环境中的实际版本)不存在该选项
- 每次试验都会退出并显示
Unknown option "--fail-on-no-tests"错误 - 导致
runner_rc=2,使奖励门控始终输出reward=0
当前版本(v3)修复
- 使用正确的 PHPUnit 10 标志
--fail-on-empty-test-suite - 指定实际测试文件路径
/tests/TestSolution.php - 添加
--bootstrap /app/autoload.php参数,使PHPUnit能通过自动加载器解析解决方案类 - 添加
--test-suffix=Solution.php参数,因为测试类文件名为TestSolution.php
奖励机制
奖励门控机制保持不变:
reward=1的条件:runner_rc==0且 PHPUnit报告tests_run >= 1且failures==0且errors==0
相关数据集
- 兄弟数据集
laion/exp_rpt_stack-php-v2-v2存在相同缺陷,建议应用类似修复




