本文整理匯總了Python中algorithm.Algorithm.finish_algorithm方法的典型用法代碼示例。如果您正苦於以下問題:Python Algorithm.finish_algorithm方法的具體用法?Python Algorithm.finish_algorithm怎麽用?Python Algorithm.finish_algorithm使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類algorithm.Algorithm
的用法示例。
在下文中一共展示了Algorithm.finish_algorithm方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1:
# 需要導入模塊: from algorithm import Algorithm [as 別名]
# 或者: from algorithm.Algorithm import finish_algorithm [as 別名]
w = csv.writer(f, delimiter = ',')
w.writerows([x.split(';') for x in header])
f.close()
# reading and preparing S, input 4 (offline/online)
#new part code, changing call of apply_algorithm
start_time_build_tree = time.clock()
if (sys.argv[4].lower()=="offline"):
for symbol in S:
alg.apply_algorithm(symbol,dashboard_filename) # new: read symbol by symbol from S either online or offline
# reach this code when offline
end_time_build_tree = time.clock()
print"Algorithm execution time time_build_tree : %s seconds " % (end_time_build_tree - start_time_build_tree)
alg.finish_algorithm(start_time_build_tree)
end_time_algorithm=time.clock()
print "event logs"
i =1
for eLog in alg.constructedTraces:
if(i==1):
#eLog.write_traceLog_into_file_csv(i)
#eLog.write_traceLog_into_file_txt(i)
eLog.write_traceLog_into_XML(i)
eLog.prepare_traceLog(i)
i+=1
#print other traces that have produces but not completely fit
if (len(alg.otherConstructedTraces)>0):
print "other event logs "
for oeLog in alg.otherConstructedTraces: