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

Extracting softmax scores on prediction #32

Open
AndersGiovanni opened this issue Oct 18, 2021 · 0 comments
Open

Extracting softmax scores on prediction #32

AndersGiovanni opened this issue Oct 18, 2021 · 0 comments

Comments

@AndersGiovanni
Copy link

AndersGiovanni commented Oct 18, 2021

Hi @smaakage85,

Thank you very much for your work on the NERDA project, very much appreciated!

In the predict() function found in predictions.py you've added the functionality to return return_confidence which is super nice! However, when you extract the most likely tag using values, indices = outputs[i].max(dim=1) (from line 104) the prediction scores have not been put in a softmax function which would give confidence scores of each tag relative to the others.

It would be very nice to either

  1. Being able to get all the tag probabilities for each prediction.
  2. Apply a softmax function in either predict() or in forward() (NERDANetwork) like they do in this basic pytorch tutorial.
@AndersGiovanni AndersGiovanni changed the title Extracting softmax score on prediction Extracting softmax scores on prediction Oct 18, 2021
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

1 participant