blob: c5fb97733d09ed33ad1a40082f7cc0d46dd1b26a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# name: pymc
# key: pm
# expand-env: ((yas/indent-line 'fixed))
# --
import theano.tensor as tn
import pymc as pm
with pm.Model() as model:
$0
if __name__ == '__main__':
with model:
start = {}
trace = pm.sample(1000,
step=pm.NUTS(model.vars),
start=start)
|