Giter VIP home page Giter VIP logo

Comments (7)

xksteven avatar xksteven commented on July 29, 2024 1

Thanks for catching the bug. Think we forgot to add a "> 0" on line 29.
I'll push the big fix soon.

As for your other question. I thought it was a good metric that ultimately wasn't used to be able to measure how often does the model even produce code that runs compared to gibberish. So compile errors were worse in my opinion than runtime errors. It can also be seen as measuring grammar vs semantic errors in a loose way.

from apps.

loubnabnl avatar loubnabnl commented on July 29, 2024 1

BTW APPS is now available on Hugging Face hub https://huggingface.co/datasets/codeparrot/apps and we're currently adding the evaluation metric

from apps.

xksteven avatar xksteven commented on July 29, 2024 1

I'll make the changes you suggested but also feel free to make a pull requests too. Thanks for looking through it and adding it to hugging face!

from apps.

loubnabnl avatar loubnabnl commented on July 29, 2024 1

Great I'll open a PR! I saw that you already changed it thanks!

from apps.

xksteven avatar xksteven commented on July 29, 2024 1

Okay I think now with the examples and documentation it is working correctly and as intended. So I think this issue is good to close now. Feel free to reopen if there's something that was missed.

from apps.

xksteven avatar xksteven commented on July 29, 2024

Also for the comment regarding the expressions. The following should work provided they're numpy arrays:

import numpy as np
a = [-2, -1, 0, 1, -2]
a[a==-2]  # outputs  -2 which is not what we expect

b = np.asarray(a)
b==-2  # outputs array([ True, False, False, False,  True])
# Then the line below returns the following, which is what we expect. The length of which is 2.
b[b==-2]   # outputs array([-2, -2]) 

from apps.

loubnabnl avatar loubnabnl commented on July 29, 2024

Thank you for your reply and for the fix! Regarding the comment above tmp_results is defined as a list in the function, maybe we could add res.extend(np.array(results[index])) here

res.extend(results[index])

and tmp_results = np.array(res) here
tmp_results = res

from apps.

Related Issues (20)

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.