blob: 0425445ca5c2dc074add07bf87e892b95d05661b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# -*- mode: snippet -*-
# name: pymc file
# key: pmf
# expand-env: ((yas-indent-line 'fixed))
# --
import pymc3 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)
|