recommenders-team/recommenders

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

Ouverte

#1 113 ouverte le 27 mai 2020

 (3 commentaires) (0 réaction) (0 personne assignée)Python (3 319 forks)batch import
help wanted

Métriques du dépôt

Stars
 (21 866 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur