Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in the prompt of HumanEval/47 #6

Open
Kim-mins opened this issue Sep 9, 2021 · 1 comment
Open

Error in the prompt of HumanEval/47 #6

Kim-mins opened this issue Sep 9, 2021 · 1 comment

Comments

@Kim-mins
Copy link

Kim-mins commented Sep 9, 2021

def median(l: list):
    """Return median of elements in the list l.
    >>> median([3, 1, 2, 4, 5])
    3
    >>> median([-10, 4, 6, 1000, 10, 20])
    15.0
    """

Maybe the output of median([-10, 4, 6, 1000, 10, 20]) should be 8 not 15.0 Can you please check it?

Here's the test with statistics library

>>> import statistics
>>> statistics.median([-10, 4, 6, 1000, 10, 20])
8.0
@Kim-mins Kim-mins changed the title Error in HumanEval/47 2nd example Error in the prompt of HumanEval/47 Sep 9, 2021
@Magolor
Copy link

Magolor commented Jul 12, 2023

I've found the same problem.
However, the question is: Is this an error in the annotation process that needs to be fixed, or a feature intended to test the completion performance under imperfect prompts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants