Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm getting this error in my code output #132

Open
maickhenriquesantos opened this issue Feb 19, 2019 · 1 comment
Open

I'm getting this error in my code output #132

maickhenriquesantos opened this issue Feb 19, 2019 · 1 comment
Assignees
Labels

Comments

@maickhenriquesantos
Copy link

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)

@jfkirk
Copy link
Owner

jfkirk commented Feb 26, 2019

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]

@jfkirk jfkirk self-assigned this Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants