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 1616By default, a NumPy array is used as the backend. To specify a different
1717backend, pass a backend instance to `sample`.
1818
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'.
2021
2122 >>> import pymc3 as pm
22- >>> db = pm.backends.SQLite ('test.db ')
23+ >>> db = pm.backends.Text ('test')
2324 >>> trace = pm.sample(..., trace=db)
2425
2526Selecting values from a backend
6364Saved backends can be loaded using `load` function in the module for the
6465specific backend.
6566
66- >>> trace = pm.backends.sqlite .load('test.db ')
67+ >>> trace = pm.backends.text .load('test')
6768
6869Writing custom backends
6970-----------------------
You can’t perform that action at this time.
0 commit comments