Skip to content

Commit

Permalink
handling nans
Browse files Browse the repository at this point in the history
  • Loading branch information
mirca committed Dec 1, 2017
1 parent 6eb3c49 commit c8d0c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oktopus/likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def __repr__(self):

def evaluate(self, params):
r = self.data - self.mean(*params)
return 0.5 * np.sum(r * r / self.var)
return 0.5 * np.nansum(r * r / self.var)

def gradient(self, params):
# use the gradient if the model provides it.
Expand Down

0 comments on commit c8d0c7b

Please sign in to comment.