Skip to content
Snippets Groups Projects
Commit cc229e7a authored by Jack Christopher Hutchinson Rolph's avatar Jack Christopher Hutchinson Rolph
Browse files

Update PeakOTron.py

parent 541e1ef4
Branches
Tags
No related merge requests found
...@@ -120,7 +120,7 @@ class BinnedLH: ...@@ -120,7 +120,7 @@ class BinnedLH:
def __call__(self, *arg): def __call__(self, *arg):
self.last_arg = arg self.last_arg = arg
y_hat = self.f(self.x, *arg) y_hat = self.f(self.x, *arg)
y_hat = np.nan_to_num(y_hat, nan=self.eps_inv) # y_hat = np.nan_to_num(y_hat, nan=self.eps_inv)
logL = self.y*(self.Logify(y_hat) - self.Logify(self.y)) + (self.y - y_hat) logL = self.y*(self.Logify(y_hat) - self.Logify(self.y)) + (self.y - y_hat)
nlogL = -np.sum(logL) nlogL = -np.sum(logL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment