/usr/lib/python2.7/dist-packages/pymc/database/no_trace.py is in python-pymc 2.2+ds-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ###
# no_trace database backend
# No memory whatsoever of the samples.
###
from numpy import zeros,shape
from . import base
import pymc
__all__ = ['Trace', 'Database']
class Trace(base.Trace):
"""The no-trace backend provides a minimalistic backend where no
trace of the values sampled is kept. This may be useful for testing
purposes.
"""
class Database(base.Database):
"""The no-trace backend provides a minimalistic backend where no
trace of the values sampled is kept. This may be useful for testing
purposes.
"""
def __init__(self, dbname):
"""Get the Trace from the local scope."""
self.__Trace__ = Trace
self.__name__ = 'notrace'
self.dbname = dbname
|