def plot_multi(names, models, angles, runs=1000):
indices = np.random.permutation(len(X_test))[:runs]
matched_all = []
for i, idx in enumerate(indices):
print("Processing {}/{}".format(i, len(indices)))
probs, matched = compare(idx, angles, models)
matched_all.append(matched)
matched_all = np.array(matched_all)
order = np.argsort(np.mean(matched_all, axis=0))
df = pd.DataFrame.from_items([(names[i], matched_all[:, i]) for i in order])
sb.boxplot(data=df)
plt.show()
评论列表
文章目录