Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit ae96528

Browse files
committed
remove pystan.stan from README.rst
issue #330 for Github homepage
1 parent 58c43e8 commit ae96528

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ Example
100100
'y': [28, 8, -3, 7, -1, 1, 18, 12],
101101
'sigma': [15, 10, 16, 11, 9, 11, 10, 18]}
102102

103-
fit = pystan.stan(model_code=schools_code, data=schools_dat,
104-
iter=1000, chains=4)
103+
sm = pystan.StanModel(model_code=schools_code)
104+
fit = sm.sampling(data=schools_dat, iter=1000, chains=4)
105105

106106
print(fit)
107107

@@ -111,7 +111,7 @@ Example
111111
# if matplotlib is installed (optional, not required), a visual summary and
112112
# traceplot are available
113113
fit.plot()
114-
plt.show()
114+
plt.show()
115115

116116
.. |pypi| image:: https://badge.fury.io/py/pystan.png
117117
:target: https://badge.fury.io/py/pystan

0 commit comments

Comments
 (0)