An error in RepeatableSampler. Series -> numpy #1214
-
I was digging your sampler code. How I did was as this. First I called create_samplers().
Then with valid_sampler, I was checking the samplercode. As my valid_sampler is <main.RepeatableSampler at 0x7f16253faa10>, I was checking RepeatableSampler. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@Jeriousman Hello, thanks for your attention to RecBole! First, you didn't give the code for how the dataset was created. Judging from the error message, the problem seems to be that the attribute of 'inter_feat' in dataset is not converted from DataFrame to Interaction. I think this is because you didn't call the function of 'dataset.build()' after creating the dataset. Second, I don't understand why you use ‘data_preparation(config, dataset)’ as the third parameter of create_samplers() function. |
Beta Was this translation helpful? Give feedback.
@Jeriousman Hello, thanks for your attention to RecBole!
For this problem, I think there is something wrong with your code.
First, you didn't give the code for how the dataset was created. Judging from the error message, the problem seems to be that the attribute of 'inter_feat' in dataset is not converted from DataFrame to Interaction. I think this is because you didn't call the function of 'dataset.build()' after creating the dataset.
Second, I don't understand why you use ‘data_preparation(config, dataset)’ as the third parameter of create_samplers() function.