Skip to content

Commit

Permalink
try to make doctests not care about exact numberical result
Browse files Browse the repository at this point in the history
  • Loading branch information
drbenvincent committed Nov 21, 2024
1 parent 55159b8 commit cdf2ee5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions causalpy/pymc_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class PyMCModel(pm.Model):
... )
>>> model.fit(X, y)
Inference data...
>>> model.score(X, y)
r2 0.19157
r2_std 0.11238
>>> model.score(X, y) # doctest: +ELLIPSIS
r2 ...
r2_std ...
dtype: float64
>>> X_new = rng.normal(loc=0, scale=1, size=(20,2))
>>> model.predict(X_new)
Expand Down

0 comments on commit cdf2ee5

Please sign in to comment.