recommenders-team/recommenders

[ASK] TypeError: '>=' not supported between instances of 'list' and 'float'

Open

#1,113 创建于 2020年5月27日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Python (2,972 fork)batch import
help wanted

仓库指标

Star
 (17,706 star)
PR 合并指标
 (平均合并 6天 16小时) (30 天内合并 10 个 PR)

描述

Description

regarding deeprec_utils.py, i have following error" “>=not supported between instances of 'list' and 'float” ``` below is the code snippet metric == "acc": pred = np.asarray(preds) pred[pred >= 0.5] = 1 pred[pred < 0.5] = 0 acc = accuracy_score(np.asarray(labels), pred) res["acc"] = round(acc, 4)



### Other Comments

贡献者指南