bert icon indicating copy to clipboard operation
bert copied to clipboard

IMDB classification

Open platinum736 opened this issue 7 years ago • 1 comments

I am trying to use the imdb model(predicting_movie_reviews_with_bert_on_tf_hub.ipynb) on my own data set. I have two labels for my dataset. I want the prediction probabilities for both the labels. I see that in the imdb notebook output the probabilities do not add up to 1. Since we are using softmax as our last layer I guess the probabilities should add up to 1. Also the value are negative so obviously they don't look like probabilities to me. Please help me in interpreting the probability output and also how can I get a probability value as output.

platinum736 avatar Mar 04 '19 06:03 platinum736

Sorry I got the answer, I missed that you are using log_softmax. I will close the issue.

platinum736 avatar Mar 04 '19 06:03 platinum736