Skip to content
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

Function 'PowBackward0' returned nan values in its 0th output. #232

Closed
marmikp opened this issue Nov 12, 2020 · 1 comment
Closed

Function 'PowBackward0' returned nan values in its 0th output. #232

marmikp opened this issue Nov 12, 2020 · 1 comment

Comments

@marmikp
Copy link

marmikp commented Nov 12, 2020

Hello,

I am using the code of self-supervised learning for my own data. My dataset contains some columns which values are the same for all the samples, therefore the standard deviation is zero for those columns during calculating the loss and this is the reason for occurring this error. I can't remove those columns because in the future I'll have some different values rather than the same value. The same issue is occurring in the forest cover type dataset.

Can you please suggest me to which method I should apply for those columns?
Should I use the MSELoss instead of TabNet's proposed loss function?

Thank you

@Optimox
Copy link
Collaborator

Optimox commented Nov 12, 2020

Hello @marmikp,

Have you been working from the branch of this PR for self supervised learning: #220 ?

It looks like a weird case to have a column with only one value. Note that pretraining that way probably won't help you much after because the model will have learn to predict the unique value. If you do not have access to rows with other values, maybe you could artificially change some values so that they are not always the same.

Could you also share the error message you get please?

Edit : I added an epsilon value to avoid zero division error which results to nan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants