@property
    def sample_db_filename(self):
        '''
        Get the name of the sqlite sample
        database for external sample
        generation and querying.
        The default location for now
        will be in the users home
        directory under ~/.pypgm/data/[name].sqlite
        where [name] is the name of the
        model. If the model has
        not been given an explict name
        it will be "default".

        '''
        home = os.path.expanduser('~')
        return os.path.join(
            home, '.pypgm',
            'data',
            '%s.sqlite' % (self.name or 'default'))
dataset/ETHPy150Open eBay/bayesian-belief-networks/bayesian/factor_graph.py/FactorGraph.sample_db_filename/original