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

Training Donut raises "Tensor had NaN values" #43

Closed
WGierke opened this issue May 31, 2018 · 2 comments
Closed

Training Donut raises "Tensor had NaN values" #43

WGierke opened this issue May 31, 2018 · 2 comments
Labels
bug Something isn't working
Projects

Comments

@WGierke
Copy link
Contributor

WGierke commented May 31, 2018

While training Donut on Synthetic Shift Outliers an exception occured:gradient for model/donut/p_x_given_z/mean/dense/bias:0 has numeric issue : Tensor had NaN values [[Node: quiet_donut_trainer_9/CheckNumerics_13 = CheckNumerics[T=DT_FLOAT, message="gradient for model/donut/p_x_given_z/mean/dense/bias:0 has numeric issue", _device="/job:localhost/replica:0/task:0/device:CPU:0"](quiet_donut_trainer_9/clip_by_norm_13/truediv)]]

@WGierke WGierke added the bug Something isn't working label May 31, 2018
@maxifischer
Copy link
Contributor

It looks like the gradients become 0, something is going wrong in the training. Setting optimizer_params = {epsilon:1e-05} in QuietDonutTrainer (increasing epsilon for AdamOptimizer) removed the error for me. But it's worth a discussion whether and how much we should improve the parameters of Donut.

@WGierke WGierke added this to To do in MP Jun 13, 2018
WGierke added a commit that referenced this issue Jun 15, 2018
* Adapt Donut to missing data

* Always use 'num_epochs', replace NaNs with 0 in RNN_EBM and LSTM_Enc_Dec

* Remove use_zero to let the detectors decide what happens with NaN's

* Lower epochs of LSTM_Enc_Dec
@WGierke
Copy link
Contributor Author

WGierke commented Jun 19, 2018

Solved via #82

@WGierke WGierke closed this as completed Jun 19, 2018
MP automation moved this from To do to Done Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
MP
  
Done
Development

No branches or pull requests

2 participants