Skip to content

Commit af319c3

Browse files
committed
Use Text as the example backend in docstring
1 parent 1373575 commit af319c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pymc3/backends/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
By default, a NumPy array is used as the backend. To specify a different
1717
backend, 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
2526
Selecting values from a backend
@@ -63,7 +64,7 @@
6364
Saved backends can be loaded using `load` function in the module for the
6465
specific backend.
6566
66-
>>> trace = pm.backends.sqlite.load('test.db')
67+
>>> trace = pm.backends.text.load('test')
6768
6869
Writing custom backends
6970
-----------------------

0 commit comments

Comments
 (0)