bernhard2202 / twitter-sentiment-analysis

Twitter Sentiment Analysis with Deep Convolutional Neural Networks and LSTMs in TensorFlow.
38 stars 9 forks source link

Evaluation #5

Closed bernhard2202 closed 8 years ago

bernhard2202 commented 8 years ago

Since we moved to softmax classification the evaluation is not working any more.

The line following line if pred == 0: can not work anymore since softmax returns an array and not a single predictor variable.

On the other hand just changing it to if pred[0] == 0: or if pred[1] == 0: gave me both scores around 0.49 which is strange since both scores should sum to one?

Either the prediction like above is not valid or the Kaggle evaluation has an issue again. I had very little time in the morning will investigate on that later.

bernhard2202 commented 8 years ago

Oh I got it never mind softmax outputs scores pred[1] is the probability of of the prediction being 1 and pred[1]+pred[0]=1

bernhard2202 commented 8 years ago

closed with #6