-
Notifications
You must be signed in to change notification settings - Fork 13
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
nll is nan in training #56
Comments
Hi, were you able to figure out the solution to this problem? I also trained a GMM model and nll is nan in training. |
I have the same issue which makes the package unusable for me sadly :/ print(gmm.model_.means, gmm.model_.covariances) -> nan Tensors |
Just found the solution. It was already answered in the issues but it wasn't documented. The issue has to do with a too small covariance_regularization. It can be increased to avoid this issue. GMM(..., covariance_regularization=1e-5) # Default value is 1e-6 Should to the trick. For some of my data i even had to decrease it to 1e-4. This behavior should be documented or even returned as a warning. |
Hi, I trained the GaussianMixture model with pycave v3.2.1, however, after training a few epochs nll=nan.0 appears. And this situation happens occasionally, I would like to ask what is the solution. My training code is as follows:
The error log is as follows:
Epoch 1: 100%|██████████| 15/15 [00:00<00:00, 47.29it/s, nll=-5.33e+3]
Epoch 1: 100%|██████████| 15/15 [00:00<00:00, 47.23it/s, nll=-5.33e+3]
Epoch 1: 100%|██████████| 15/15 [00:00<00:00, 46.75it/s, nll=nan.0]
Epoch 1: 100%|██████████| 15/15 [00:00<00:00, 46.04it/s, nll=nan.0]
Thank you so much!
Best regards,
Zhiwei
The text was updated successfully, but these errors were encountered: