luisroque/instruct-python-500k
收藏资源简介:
该数据集包含来自Stack Overflow上带有`python`标签的问题和答案,时间跨度为2008年8月2日至2016年10月19日。数据集经过转换,专注于高质量内容,用于微调大型语言模型(LLMs)以改进Python编程辅助。处理步骤包括问题与答案的配对、保留每个问题的最高评分答案、去除HTML标签、合并问题的标题和正文、过滤掉负分或不包含Python代码结构的条目。最终数据集包含`score_question`、`score_answer`、`question`和`answer`四个字段。数据集的大小为987,469,369字节,包含501,349个示例,适用于文本生成任务,语言为英语。
This dataset comprises questions and answers tagged with `python` from Stack Overflow, covering the period from August 2, 2008 to October 19, 2016. It has been curated to prioritize high-quality content for fine-tuning Large Language Models (LLMs) to improve Python programming assistance. The preprocessing workflow includes pairing questions with their corresponding answers, retaining the highest-scored answer for each individual question, stripping HTML tags, concatenating the title and body content of each question, and filtering out entries with negative scores or those lacking Python code constructs. The finalized dataset includes four fields: `score_question`, `score_answer`, `question`, and `answer`. With a total size of 987,469,369 bytes, the dataset contains 501,349 examples, is tailored for text generation tasks, and uses English as its primary language.
数据集概述
数据集信息
- 特征:
score_question: 问题评分,数据类型为int16score_answer: 回答评分,数据类型为int16question: 问题内容,数据类型为stringanswer: 回答内容,数据类型为string__index_level_0__: 索引级别,数据类型为int64
- 分割:
train: 训练集,包含 501349 个样本,总字节数为 987469369
- 下载大小: 550185963 字节
- 数据集大小: 987469369 字节
- 配置:
default: 数据文件路径为data/train-*
- 许可: CC-BY-SA 3.0
- 任务类别: 文本生成
- 语言: 英语
- 名称: Instruct Python 500k
- 大小类别: 100K<n<1M
转换后的数据集
- 目标: 用于微调大型语言模型,以提高Python编程辅助的质量。
- 结构:
- 问题-回答配对: 使用
ParentId进行问题和回答的配对。 - 质量聚焦: 仅保留每个问题的最高评分回答。
- HTML标签移除: 移除内容中的所有HTML标签。
- 合并问题字段: 每个问题的标题和正文合并。
- 过滤: 排除评分负数或不包含Python代码结构的条目。
- 问题-回答配对: 使用
- 最终列:
score_questionscore_answerquestionanswer
原始数据集
- 内容: 包含带有
python标签的Stack Overflow问题和回答,时间范围从2008年8月2日至2016年10月19日。




