Skip to content

Commit

Permalink
round to 13th decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrejaKovacic committed Jan 16, 2020
1 parent 2cb861f commit fceb2b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Orange/distance/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,8 @@ def _bhattacharyya(a, b):
a = _prob_dist(a)
b = _prob_dist(b)
if sp.issparse(a):
return -np.log(np.sum(np.sqrt(a.multiply(b))))
return -np.log(np.sum(np.sqrt(a * b)))
return np.round(-np.log(np.sum(np.sqrt(a.multiply(b)))), 13)
return np.round(-np.log(np.sum(np.sqrt(a * b))), 13)


class Bhattacharyya(Distance):
Expand Down

0 comments on commit fceb2b3

Please sign in to comment.