Skip to content

Conversation

@gouravcy
Copy link

If the probability of any label is less than 0.5 than we can show both the best and the second best prediction using above code.

If the probability of any label is less than 0.5 than we can show both the best and the second best prediction using above code.
preds_max_prob, preds_index_prob = preds_prob.max(dim=2)
print(preds_max_prob)
print(preds_max_prob.type)
index=np.zeros((11,26))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, 🙋‍♂️ just looking at line 74
is import numpy as np needed at the front?

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

Successfully merging this pull request may close these issues.

2 participants