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
When I run wide and deeptab,I got stuck #68
Comments
Hey @zhang-HZAU Thanks for the issue. You are not the first one that finds this not intuitive so we will add a warning as soon as possible. The "issue" is that when you have a multiclass classification problem, you need to specify the number of classes via the model = WideDeep(wide=wide, deeptabular=deeptabular, pred_dim=5) And the number of classes needs to start from 0. Going to leave this issue open until we add that Warning if the Thanks again Regarding the second question, I will have a look to the code. Could you please open a separate issue? Cheers! |
is you could send me the data or point me towards where I can get it would be great (also, the library is not autoML :) so you would have to impute the |
|
Hi pytorch_widedeep team,
First of all thank you for your contributions to the wide_deep field. Recently I am doing a task about classification. The essence is similar to the predicted adult salary level shown in the example in the project readme. All of my input data has been processed as numerical values. The data contains continuous values and some indicators are discrete values (such as: 0,1,2...). In addition, the data contains missing values. My task is a five-category problem.
Question one:
I used the code used to predict adult wages in the readme, changed the data input part and changed "binary" to "multiclass" to adapt to my task.When I executing the following code:
I got the following error: "RuntimeWarning: invalid value encountered in true_divide". I understand that it is caused by the occurrence of 0 divided by 0, but the error message given by the code is not enough for me to locate the problem segment. I would like to ask how to solve the problem?
Question two:
In the process of using the function to divide the training set into the validation set:
I reported the error "IndexError: index 648 is out of bounds for axis 0 with size 530" exceeding the index range of the training set. I have no solution.
Upload the source code to the attachment, and see the ipynb file running results for detailed error information. Looking forward to your answer~
liver_predict.zip
The text was updated successfully, but these errors were encountered: