Skip to content

Commit

Permalink
fixing bug in sigmoid returning mislabeled parameters due to differen…
Browse files Browse the repository at this point in the history
…t ordering of Sigmoid params and _sigmoid params (#90)
  • Loading branch information
lmcintosh authored and nirum committed Apr 4, 2017
1 parent fb2f3c3 commit 7531211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyret/nonlinearities.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def fit(self, x, y, **kwargs):
return self

@staticmethod
def _sigmoid(x, threshold, slope, peak, baseline):
def _sigmoid(x, baseline, peak, slope, threshold):
return baseline + peak / (1 + np.exp(-slope * (x - threshold)))

def predict(self, x):
Expand Down

0 comments on commit 7531211

Please sign in to comment.