nmcdev/meteva

分类、分级检验图的问题

Closed this issue · 1 comments

ob = (np.random.rand(20) * 10).astype(np.int8)
fo = (np.random.rand(3,20) * 10).astype(np.int8)
grade_list = [-3,-1,1,3]
mem.performance_multi(ob, fo, grade_list=grade_list)

生成图表的legend最后一个区间是不是应为 >= 3,现在是>=-1

ob = (np.random.rand(20) * 10).astype(np.int8)
fo = (np.random.rand(8,20) * 10).astype(np.int8)
grade_list = [-3,-1,1,3]
mem.performance_multi(ob, fo, grade_list=grade_list)

报错
File "\lib\site-packages\meteva\method\multi_category\plot.py", line 341, in performance_multi
grade_legend_strs.append(">=" + str(grade_list[legend_num - 2]))
IndexError: list index out of range

收到,谢谢!在1.5.1.1版本中已修正