代码拉取完成,页面将自动刷新
#!/usr/bin/env python
import sys
import argparse
try:
import seaborn as sns
sns.set(style="dark")
except ImportError:
pass
import matplotlib.pyplot as plt
from common_plot import parse_files, plot_accuracy
TOP_K = 1
parser = argparse.ArgumentParser(description='Plot top {}% from log files.'.format(TOP_K))
parser.add_argument('-v', dest='value_at_hover', action='store_true',
help="Display plot values at cursor hover")
parser.add_argument('-s', dest='separate', action='store_true',
help="plot each log separately, don't concatenate them")
parser.add_argument('log', nargs = '*', help = "list of log files.")
args = parser.parse_args()
data = parse_files(files=args.log, top_k=TOP_K, separate=args.separate)
plt = plot_accuracy(top_k=TOP_K, data=data, value_at_hover=args.value_at_hover)
plt.show()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。