recommenders-team/recommenders
GitHub で見る[ASK] TypeError: '>=' not supported between instances of 'list' and 'float'
Open
#1,113 opened on 2020年5月27日
help wanted
Repository metrics
- Stars
- (17,706 stars)
- PR merge metrics
- (平均マージ 6d 16h) (30d で 10 merged PRs)
説明
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