Git Product home page Git Product logo

Comments (3)

RylanSchaeffer avatar RylanSchaeffer commented on August 28, 2024

If making this change is relatively simple, you can let me know how to make the change and I can open a PR?

from bigcode-evaluation-harness.

shuhao02 avatar shuhao02 commented on August 28, 2024

Hi, I encounter the same need.

I find that the code can be easily modified to log the per-sample score.

Take the task humaneval as an example, the second return value in compute_code_eval (called in process_result: link) will return the logs (including whether the output is passed) of sample as a list.

In the original implementation, they just use a _ to accept the returned logs. If you want to output the logs to a file, you can just save the value by json.dump.

from bigcode-evaluation-harness.

loubnabnl avatar loubnabnl commented on August 28, 2024

Yes as @shuhao02 explained and as I mention in this issue you can dump the results returned by code_eval metric #211 (comment)

results, details = compute_code_eval(..)
details.to_json("details.json")

Feel free to make a PR to add a flag for the harness, but note that not all tasks use this metric

from bigcode-evaluation-harness.

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.