Skip to content

Commit

Permalink
Merge pull request #16 from posterior/20171106-fsaad-travis-ubuntu1604
Browse files Browse the repository at this point in the history
Fix numpy strict conversion error, (related to issue #15).
  • Loading branch information
F Saad authored Nov 10, 2017
2 parents 9db375f + 8a8f853 commit 173c55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributions/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


def scores_to_probs(scores):
scores = numpy.array(scores)
scores = numpy.array(scores, dtype='d')
scores -= scores.max()
probs = numpy.exp(scores, out=scores)
probs /= probs.sum()
Expand Down

0 comments on commit 173c55d

Please sign in to comment.