You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #3146 . This error continues to occur when vars is specified. This works
withmodel:
backend=pm3.backends.SQLite('/path/to/database.sqlite')
# step methodstep=pm3.NUTS([x, y, z])
trace=pm3.sample(5000, step, trace=backend)
but this doesn't
withmodel:
# note vars specified for not storing all variables in backendbackend=pm3.backends.SQLite('/path/to/database.sqlite',
vars=[x, y])
# step methodstep=pm3.NUTS([x, y, z])
trace=pm3.sample(5000, step, trace=backend)
with this error
Multiprocess sampling (4 chains in 4 jobs)
NUTS: [x, y, z]
Sampling 4 chains: Traceback (most recent call last):
File "~/anaconda/envs/pymc3_master/lib/python3.6/site-packages/pymc3/backends/sqlite.py", line 164, in _execute_queue
self._queue[varname])
sqlite3.ProgrammingError: Cannot operate on a closed cursor.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "~/anaconda/envs/pymc3_master/lib/python3.6/site-packages/pymc3/sampling.py", line 999, in _mp_sample
trace.close()
File "~/anaconda/envs/pymc3_master/lib/python3.6/site-packages/pymc3/backends/sqlite.py", line 170, in close
self._execute_queue()
File "~/anaconda/envs/pymc3_master/lib/python3.6/site-packages/pymc3/backends/sqlite.py", line 165, in _execute_queue
self._queue[varname] = []
sqlite3.ProgrammingError: Cannot operate on a closed database.
The text was updated successfully, but these errors were encountered:
Related to #3146 . This error continues to occur when
vars
is specified. This worksbut this doesn't
with this error
The text was updated successfully, but these errors were encountered: