Skip to content

Commit 9c084dd

Browse files
committed
Replace Text backend with CSV
The main reason to keep the Text backend around was that pandas was an optional dependency. Now that this is no longer the case, the original Text backend doesn't offer any advantages over the CSV backend. (Even if someone prefers not to write to files while sampling, they can sample with the NDArray backend and then use the CSV dump function.) Rename CSV to Text. This name is more appropriate because the values being stored as plain text is the important feature, not which delimiter is used.
1 parent 5b9093f commit 9c084dd

File tree

5 files changed

+294
-480
lines changed

5 files changed

+294
-480
lines changed

pymc3/backends/__init__.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
------------------
55
66
1. NumPy array (pymc3.backends.NDArray)
7-
2. Plain text formats (pymc3.backends.Text and pymc3.backends.CSV)
7+
2. Text files (pymc3.backends.Text)
88
3. SQLite (pymc3.backends.SQLite)
99
10-
The NDArray and Text backend both hold the entire trace in memory,
11-
whereas CSV and SQLite backends store the values while sampling.
10+
The NDArray backend holds the entire trace in memory, whereas the Text
11+
and SQLite backends store the values while sampling.
1212
1313
Selecting a backend
1414
-------------------
@@ -107,16 +107,13 @@
107107
If the traces are stored on disk, then a `load` function should also be
108108
defined that returns a MultiTrace object.
109109
110-
For specific examples, see pymc3.backends.{ndarray,text,csv,sqlite}.py.
110+
For specific examples, see pymc3.backends.{ndarray,text,sqlite}.py.
111111
"""
112112
from ..backends.ndarray import NDArray
113113
from ..backends.text import Text
114-
from ..backends.csv import CSV
115114
from ..backends.sqlite import SQLite
116115

117116
_shortcuts = {'text': {'backend': Text,
118117
'name': 'mcmc'},
119-
'csv': {'backend': CSV,
120-
'name': 'mcmc'},
121118
'sqlite': {'backend': SQLite,
122119
'name': 'mcmc.sqlite'}}

pymc3/backends/csv.py

Lines changed: 0 additions & 248 deletions
This file was deleted.

0 commit comments

Comments
 (0)