Giter Club home page Giter Club logo

Comments (4)

apoorvumang avatar apoorvumang commented on August 26, 2024 1

Hi, thanks for your interest.

As mentioned in #8, please try the following:

  1. Switch to branch apoorv-dump instead of main. This contains the latest code but is not cleaned, hence the large number of files.
  2. In this branch, use eval_accelerate.py to evaluate (use sample size > 200). This saves all the generated predictions and scores to a scores file.
  3. Use notebook filtered_eval_from_scores.ipynb which uses these saved scores to evaluate MRR etc. I would suggest you go through the notebook to see the exact way these are calculated (if you see any issues please do contact me)

The notebook contains the logic for MRR calculation from raw scores. Predictions are sorted by score, then 'seen' entities are removed from the prediction list (filtering), and then the rank of the correct entity is used to calculate MRR.

from kgt5.

apoorvumang avatar apoorvumang commented on August 26, 2024 1

I meant num_predictions=200 with beam_size=1 . Rest were all left default

from kgt5.

screemix avatar screemix commented on August 26, 2024

In this branch, use eval_accelerate.py to evaluate (use sample size > 200). This saves all the generated predictions and scores to a scores file.

@apoorvumang, I am sorry, did you mean beam_size or num_predictions instead of sample size? I didn't manage to find such parameter in your code and would like to make sure I understood you correctly. Also, what were other parameters equal to in your settings (like length_penalty, max_output_length, length_normalization, and of course # predictions and beam size)?

from kgt5.

github-cqy avatar github-cqy commented on August 26, 2024

hi, @apoorvumang
As you said, I set (num_reduction) to 10 in (eval_accelerate. py), which has caused my CUDA memory to exceed (30G). How do I set 200?
Thank you for your support!

from kgt5.

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.