summaryrefslogtreecommitdiff
path: root/snippets/python-mode/pymc-file
blob: 65087a84718a45f7b6f03b37d324f2120c6c9e5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- mode: snippet -*-
# name: pymc file
# key: pmf
# --
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)