You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:/Users/Maick Henrique/PycharmProjects/recsys-experiments/codes/testeTensor.py", line 118, in
test_recom()
File "C:/Users/Maick Henrique/PycharmProjects/recsys-experiments/codes/testeTensor.py", line 102, in test_recom
recall_k=10, precision_k=10, ndcg_k=10)
File "C:\Users\Maick Henrique\AppData\Roaming\Python\Python36\site-packages\tensorrec\eval.py", line 158, in fit_and_eval
p_at_k = precision_at_k(predicted_ranks, test_interactions, k=precision_k)
File "C:\Users\Maick Henrique\AppData\Roaming\Python\Python36\site-packages\tensorrec\eval.py", line 22, in precision_at_k
ranks = sp.csr_matrix(predicted_ranks * positive_test_interactions.A)
ValueError: operands could not be broadcast together with shapes (84658,2460) (17454,3)
The text was updated successfully, but these errors were encountered:
Hey @maickhenriquesantos -- to help debug this, can you give me the following information:
Shape of the interactions [rows, cols, #values]
Shape of the user features [rows, cols, #values]
Shape of the item features [rows, cols, #values]
Traceback (most recent call last):
File "C:/Users/Maick Henrique/PycharmProjects/recsys-experiments/codes/testeTensor.py", line 118, in
test_recom()
File "C:/Users/Maick Henrique/PycharmProjects/recsys-experiments/codes/testeTensor.py", line 102, in test_recom
recall_k=10, precision_k=10, ndcg_k=10)
File "C:\Users\Maick Henrique\AppData\Roaming\Python\Python36\site-packages\tensorrec\eval.py", line 158, in fit_and_eval
p_at_k = precision_at_k(predicted_ranks, test_interactions, k=precision_k)
File "C:\Users\Maick Henrique\AppData\Roaming\Python\Python36\site-packages\tensorrec\eval.py", line 22, in precision_at_k
ranks = sp.csr_matrix(predicted_ranks * positive_test_interactions.A)
ValueError: operands could not be broadcast together with shapes (84658,2460) (17454,3)
The text was updated successfully, but these errors were encountered: