Skip to content

Commit 3b8db0f

Browse files
committed
Run black formatter
1 parent 08e680e commit 3b8db0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pymc3/math.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,12 @@ def invlogit(x, eps=sys.float_info.epsilon):
194194
"""The inverse of the logit function, 1 / (1 + exp(-x))."""
195195
return (1.0 - 2.0 * eps) / (1.0 + tt.exp(-x)) + eps
196196

197+
197198
def softmax(x):
198-
"""Generalization of the inverse logit function to multiple dimensions."""
199+
"""Generalization of the inverse logit function to multiple dimensions."""
199200
return tt.nnet.softmax(x)
200201

202+
201203
def logbern(log_p):
202204
if np.isnan(log_p):
203205
raise FloatingPointError("log_p can't be nan.")

0 commit comments

Comments
 (0)