-
Notifications
You must be signed in to change notification settings - Fork 14
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
FE computation for Categoricals fails when the parameter vector has 0 entries #165
Comments
Could be related to #75 |
The reason for that is because we need to compute Would it be reasonable to |
For reference we already have a similar |
I think clamping and renormalizing the vector should resolve the problem. By definition, the logarithm function can not accept a zero-entry, so this is not a bug in my view. ForneyLab clamp log for entropy computation for a categorical variable (https://github.com/biaslab/ForneyLab.jl/blob/fca07c3bcb3a5abe7393dfb275a2e47e54fd68aa/src/factor_nodes/categorical.jl#L136). |
When running an HMM, FE computation fails due to 0 entries. For example in the model
We are unable to compute FE if D contains 0's
The text was updated successfully, but these errors were encountered: