コード例 #1
0
def run_fishgram(a):
    reload(fishgram)
    time_interval.start()
    fish = fishgram.Fishgram(a)
    log.debug(" filtering data set...")
    fishgram.notice_changes(a)
    fish.forest.extractForest()
    time_interval.end()
    log.debug("**take %s seconds on filtering**" % time_interval.interval())
    log.debug("mining patterns...")
    time_interval.start()
    fish.run()
    time_interval.end()
    log.debug("**take %s seconds on mining**" % time_interval.interval())
    log.flush()
コード例 #2
0
ファイル: pre_fishgram.py プロジェクト: 4fingers/opencog
def run_fishgram(a):
    reload(fishgram)
    time_interval.start() 
    fish = fishgram.Fishgram(a)
    log.debug(" filtering data set..." )
    fishgram.notice_changes(a)
    fish.forest.extractForest()
    time_interval.end()
    log.debug("**take %s seconds on filtering**"% time_interval.interval())
    log.debug("mining patterns..." )
    time_interval.start()
    fish.run()
    time_interval.end()
    log.debug("**take %s seconds on mining**"% time_interval.interval())
    log.flush()
コード例 #3
0
def run_filter(a):
    '''docstring for run_forest'''
    reload(adaptors)
    log.debug(" filtering data set...")
    time_interval.start()
    forest = adaptors.ForestExtractor(a, None)
    forest.extractForest()
    time_interval.end()
    log.debug("**take %s seconds on filtering**" % time_interval.interval())
    log.flush()
コード例 #4
0
ファイル: pre_fishgram.py プロジェクト: 4fingers/opencog
def run_filter(a):
    '''docstring for run_forest''' 
    reload(adaptors)
    log.debug(" filtering data set..." )
    time_interval.start() 
    forest = adaptors.ForestExtractor(a,  None)
    forest.extractForest()
    time_interval.end()
    log.debug("**take %s seconds on filtering**"% time_interval.interval())
    log.flush()