recommenders-team/recommenders

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

Open

#1.113 geöffnet am 27. Mai 2020

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (2.972 Forks)batch import
help wanted

Repository-Metriken

Stars
 (17.706 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 16h) (10 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide