Giter Site home page Giter Site logo

human-eval's Introduction

Nowadays, this repository might not be useful because the Codex models are now deprecated.

If you are interested in OpenAI's new Chat models, please refer to the OpenAI's newer Chat models which are able to do many coding tasks with similar capability.

Creating Problem Jsonl as intended

This repo is about creating HumanEval.jsonl dataset easily.

HumanEval dataset are handwritten programming problems described in 2.2. HumanEval: Hand-Written Evaluation Set section on the following paper.

Paper: "Evaluating Large Language Models Trained on Code".

How to Create Json

  1. Renew the parameter of fetch_id function before executing printing.py.

  2. Write texts based on the format of HumanEval.jsonl.

  3. Execute printing.py then you could see changes in problems.json and samples.json.

  4. Add problem.json to HumanEval.jsonl.

input.txt Example

def add(a,b):
    """
    make a program which returns a plus b.
    """

add
    return a+b

def check(candidate):
    # Check some simple cases
    assert candidate(3,4) == 7
    assert candidate(10,11) == 21

Tip

After executing printing.py, it is recommended to modify the part corresponding to importing modules or functions in input.txt in terms of unity as follows:

from module_name import function_name\n\n
import function_name as alias_name\n\n
\ndef

Cautions

  1. Be sure the directory where the files, input.txt and printing.py are located in.

  2. It might occur errors if the docstrings include in some escape sequences like '\n\n'.

Reference

https://github.com/openai/human-eval

human-eval's People

Contributors

junseoklee42 avatar

Stargazers

Emanuele Sabetta avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.