File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 16
16
By default, a NumPy array is used as the backend. To specify a different
17
17
backend, pass a backend instance to `sample`.
18
18
19
- For example, the following would save traces to the file 'test.db'.
19
+ For example, the following would save the sampling values to CSV files
20
+ in the directory 'test'.
20
21
21
22
>>> import pymc3 as pm
22
- >>> db = pm.backends.SQLite ('test.db ')
23
+ >>> db = pm.backends.Text ('test')
23
24
>>> trace = pm.sample(..., trace=db)
24
25
25
26
Selecting values from a backend
63
64
Saved backends can be loaded using `load` function in the module for the
64
65
specific backend.
65
66
66
- >>> trace = pm.backends.sqlite .load('test.db ')
67
+ >>> trace = pm.backends.text .load('test')
67
68
68
69
Writing custom backends
69
70
-----------------------
You can’t perform that action at this time.
0 commit comments