1 Star 0 Fork 0

Miracle0814/edge-detection-aco

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
iteration_times.py 1022 Bytes
一键复制 编辑 原始数据 按行查看 历史
syam 提交于 2015-03-11 18:28 . - Added results for Mandril
import numpy as np
import matplotlib.pyplot as plt
exp = []
# For each experiment folder
for e in xrange(0,3):
tmp = np.loadtxt("EXP"+str(e+1)+"/SI_Proj/RESULTS/mandril/PLOT/elapsed_time.txt")
exp.append(tmp)
count = list(xrange(1,11))
# Plot
pl_exp1, = plt.plot(count, exp[0], linestyle='-', marker='v', color='red', label='Ants initialized on random positions')
pl_exp2, = plt.plot(count, exp[1], linestyle='-', marker='s', color='green', label='Ants initialized on most promising solutions')
pl_exp3, = plt.plot(count, exp[2], linestyle='-', marker='o', color='blue', label='Improved search based on ants average pheromone deposit')
plt.legend((pl_exp1, pl_exp2, pl_exp3),
( 'Ants initialized on random positions',
'Ants initialized on most promising solutions',
'Improved search based on ants average pheromone deposit'),
loc=2,
prop={'size':10},
fancybox=True)
plt.grid(True)
plt.xlabel("Iteration Count")
plt.ylabel("Time elapsed for iteration (in milli seconds)")
plt.savefig('elapsed_time.pdf')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/miracle0814/edge-detection-aco.git
git@gitee.com:miracle0814/edge-detection-aco.git
miracle0814
edge-detection-aco
edge-detection-aco
master

搜索帮助