Skip to content

Commit

Permalink
softmax conversion of logits in TfModelBase.predict_proba
Browse files Browse the repository at this point in the history
  • Loading branch information
cgpotts committed May 14, 2018
1 parent 9d07960 commit 470ac06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tf_model_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ def predict_proba(self, X):
of X and n is the number of classes
"""
self.probs = tf.nn.softmax(self.model)
return self.sess.run(
self.model, feed_dict=self.test_dict(X))
self.probs, feed_dict=self.test_dict(X))

def predict(self, X):
"""Return classifier predictions, as the class with the
Expand Down

0 comments on commit 470ac06

Please sign in to comment.