Skip to content

Commit 65b5a4d

Browse files
committed
Typo fix
1 parent 69979e6 commit 65b5a4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymc3/distributions/discrete.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ class OrderedProbit(Categorical):
16971697
2*np.ones(n2_c),
16981698
3*np.ones(n3_c))) - 1
16991699
1700-
# Ordered logistic regression
1700+
# Ordered probit regression
17011701
with pm.Model() as model:
17021702
cutpoints = pm.Normal("cutpoints", mu=[-1,1], sigma=10, shape=2,
17031703
transform=pm.distributions.transforms.ordered)

pymc3/distributions/dist_math.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def log_diff_normal_cdf(mu, sigma, x, y):
160160

161161
# To stabilize the computation, consider these three regions:
162162
# 1) x > y > 0 => Use erf(x) = 1 - e^{-x^2} erfcx(x) and erf(y) =1 - e^{-y^2} erfcx(y)
163-
# 2) 0 > x > 0 => Use erf(x) = e^{-x^2} erfcx(-x) and erf(y) = e^{-y^2} erfcx(-y)
163+
# 2) 0 > x > y => Use erf(x) = e^{-x^2} erfcx(-x) and erf(y) = e^{-y^2} erfcx(-y)
164164
# 3) x > 0 > y => Naive formula log( (erf(x) - erf(y)) / 2 ) works fine.
165165
return tt.log(0.5) + tt.switch(
166166
tt.gt(y, 0),

0 commit comments

Comments
 (0)