mbpp
收藏资源简介:
Mostly Basic Python Problems (MBPP) 数据集包含大约1000个由众人协作创作的Python编程问题,这些问题旨在被入门级程序员解决,涵盖了编程基础、标准库功能等内容。每个问题包括一个任务描述、代码解决方案和3个自动化测试用例。数据集的一部分已经由作者手动验证过。
The Mostly Basic Python Problems (MBPP) dataset comprises approximately 1,000 Python programming problems collaboratively developed by a community of contributors. Targeted at entry-level programmers, the problems cover basic programming fundamentals, standard library functionalities and other related topics. Each problem includes a task description, a code solution, and three automated test cases. A subset of this dataset has been manually validated by the dataset authors.
Mostly Basic Python Problems (mbpp) 数据集概述
数据集简介
- 名称: Mostly Basic Python Problems (mbpp)
- 用途: 评估代码生成模型
- 语言: 英文 - Python代码
- 许可证: CC-BY-4.0
- 数据量: 小于1K样本
- 来源: 原始数据集
- 任务类型: 文本到文本生成
- 标签: 代码生成
数据集结构
配置版本
-
full
- 特征:
task_id: 任务IDtext: 编程任务描述code: 编程任务解决方案test_list: 测试用例列表test_setup_code: 测试设置代码challenge_test_list: 挑战性测试用例列表
- 数据分割:
train: 374个样本test: 500个样本validation: 90个样本prompt: 10个样本
- 特征:
-
sanitized
- 特征:
source_file: 源文件task_id: 任务IDprompt: 编程任务描述code: 编程任务解决方案test_imports: 测试导入test_list: 测试用例列表
- 数据分割:
train: 120个样本test: 257个样本validation: 43个样本prompt: 7个样本
- 特征:
数据集创建
- 创建理由: 提供一组简单的编程任务及其解决方案,用于评估代码生成功能。
- 数据收集: 数据集由Google内部众包创建,部分数据经过第二轮注释以改进任务描述。
- 注释者: Google内部众包团队。
使用注意事项
- 安全执行: 在安全环境中执行生成的Python代码,以避免潜在危害。
- 社会影响: 通过该数据集可以更好地评估代码生成模型,减少使用此类模型时引入的问题。
- 局限性: 任务描述可能不够明确,
sanitized版本通过第二轮注释改进此问题。
附加信息
-
维护者: Google Research
-
引用信息: bibtex @article{austin2021program, title={Program Synthesis with Large Language Models}, author={Austin, Jacob and Odena, Augustus and Nye, Maxwell and Bosma, Maarten and Michalewski, Henryk and Dohan, David and Jiang, Ellen and Cai, Carrie and Terry, Michael and Le, Quoc and others}, journal={arXiv preprint arXiv:2108.07732}, year={2021}
-
贡献者: @lvwerra 添加此数据集。




