How to implement a model for binary classification task? #393
Unanswered
brictobrick
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for making this great library! I'd like to implement a model for binary classification task with Transformers4Rec, but I encountered some errors. Could you please tell me how to solve this problem, or provide tutorials for binary classification task? I will be grateful for any help you can provide.
First, I appended a target column 'is_churn' to dataset (1: churn, 0: retention), and set 'target_name' as below. Is this the correct way for binary classification task? I'm confused what I have to do with schema.pb for target column.
Secound, I used the same code for training and evaluation used in this tutorial 03-Session-based-recsys.ipynb. However, I got 'IndexError: too many indices for tensor of dimension 1'. What should I fix for evaluation process?
Beta Was this translation helpful? Give feedback.
All reactions