blob: 1cae0cd9f9efc1638d39d6f5f78f8cf0a24095aa (
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)
|