Open Woo-Yeol opened 1 year ago
Hello @Woo-Yeol! Thanks for your attention to RecBole!
Generally speaking, after the dataset is processed, we will call the dataset's inter_matrix
function to create a sparse matrix such as coo
and csr
as follows. At this time, the output result does not depend on the item_length
column.
Please provide the detailed code of the issue you mentioned so that we can better solve your problem.
Describe the bug
I'm using the RecBole framework, and I'm having a problem with the code that converts the user-item interaction matrix to a CSR-formatted matrix in the reference function of the sequential model, and I'm not getting the reference to proceed properly.
While debugging, I found the following issue.
The code to convert the dataset object to a CSR matrix cannot be executed because the dataset object does not have a column named item_length, and that column is created when proceeding with the data_prepagation() function, not with create_dataset().
Also, the output of the data_prepagation() function is a data loader object, so the function cannot be executed normally.
Here is the code: https://github.com/RUCAIBox/RecBole/blob/master/run_example/sequential-model-fixed-missing-last-item.ipynb
I have since written code that references the above code to train a model on my custom movie lens dataset, and I am getting the error again because the item_length column is missing.
How can you resolve the following issues?
Expected behavior A clear and concise description of what you expected to happen.
If I'm approaching this the wrong way, I'd like to ask for advice, and if there's something wrong with the code, I'd like to ask for improvements.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):