explore.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:deep-learning-experiments 作者: raghakot 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号