human-eval is a benchmark dataset and evaluation framework created by OpenAI for measuring the ability of language models to generate correct code. It consists of hand-written programming problems with unit tests, designed to assess functional correctness rather than superficial metrics like text similarity. Each task includes a natural language prompt and a function signature, requiring the model to generate an implementation that passes all provided tests. The benchmark has become a standard for evaluating code generation models, including those in the Codex and GPT families. Researchers can use the dataset to run reproducible comparisons across models and track improvements in functional code synthesis. By focusing on correctness through execution, human-eval provides a rigorous and practical way to evaluate programming capabilities in AI systems.
Features
- Collection of hand-written programming problems with unit tests
- Measures functional correctness of generated code
- Includes natural language prompts and function signatures
- Standard benchmark for evaluating code generation models
- Enables reproducible comparisons across different models
- Widely used in assessing Codex, GPT, and other code models