Giter Site home page Giter Site logo

Comments (2)

patil-suraj avatar patil-suraj commented on June 3, 2024

Hi @sevinjyolchuyeva , num_return_sequences is not the solution here. It's meant for generation but this problem is not purely generative. To get the probability of the class tokens, make sure each class label is encoded as single id. Then to get get probability you'll need to generate yourself without using the .generate method and get the final logits. Then let's say we are predicting "true" or "false", to get probability apply softmax only on the "true" and "false" tokens (in your case, 8 tokens).

Hope this helps. I'm not entirely sure how this will work, but worth giving it a try

from exploring-t5.

sevinjyolchuyeva avatar sevinjyolchuyeva commented on June 3, 2024

Hi, @patil-suraj :),
Thank you so much for your comment. I have understood what you said. I will try it.

from exploring-t5.

Related Issues (15)

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.