#NEWLINE# def __init__( self , cachedir , mmap_mode = None , compress = False , verbose = 1 ) : #NEWLINE# #INDENT# "\n            Parameters\n            ----------\n            cachedir: string or None\n                The path of the base directory to use as a data store\n                or None. If None is given, no caching is done and\n                the Memory object is completely transparent.\n            mmap_mode: {None, 'r+', 'r', 'w+', 'c'}, optional\n                The memmapping mode used when loading from cache\n                numpy arrays. See numpy.load for the meaning of the\n                arguments.\n            compress: boolean, or integer\n                Whether to zip the stored data on disk. If an integer is\n                given, it should be between 1 and 9, and sets the amount\n                of compression. Note that compressed arrays cannot be\n                read by memmapping.\n            verbose: int, optional\n                Verbosity flag, controls the debug messages that are issued\n                as functions are evaluated.\n        " #NEWLINE# Logger . __init__ ( self ) #NEWLINE# self . _verbose = verbose #NEWLINE# self . mmap_mode = mmap_mode #NEWLINE# self . timestamp = time . time ( ) #NEWLINE# self . compress = compress #NEWLINE# if ( compress and ( mmap_mode is not None ) ) : #NEWLINE# #INDENT# warnings . warn ( 'Compressed results cannot be memmapped' , stacklevel = 2 ) #NEWLINE# #UNINDENT# if ( cachedir is None ) : #NEWLINE# #INDENT# self . cachedir = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . cachedir = os . path . join ( cachedir , 'joblib' ) #NEWLINE# mkdirp ( self . cachedir )