Skip to content

DIEN model data error. #1226

Answered by Wicknight
Jeriousman asked this question in Q&A
Apr 4, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@Jeriousman
Hello, thanks for your attention to RecBole!
The NoneType here refers to the model in train_data. This problem occurs because you have not passed the model of 'DIEN' into train_data before enumerating the data. You can check our function 'trainer.fit()' and you'll find that we'll first pass the model into train_data before enumerating the data if you use dynamic negative sampling.
So you can get the model first through this function:
model = get_model(config['model'])(config, train_data.dataset).to(config['device'])
and then pass the model into train_data through this function:
train_data.get_model(model)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jeriousman
Comment options

Answer selected by Jeriousman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants