-
Notifications
You must be signed in to change notification settings - Fork 73
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
How to resolve this error when using amen_cross
?
#57
Comments
All tensor elements sampled in the first iteration are zeros, so there is no information to proceed except assuming the entire tensor is zero. This may be true, but more likely the tensor contains undiscovered nonzero elements elsewhere, hence the error to warn the user. If you have any information about locations of nonzeros (e.g. a maximum of log(tensor) estimated otherwise), you can supply a tt_unit tensor (or a sum thereof) in the initial guess 'y0' parameter. |
Thanks a lot! |
Hi, I was wondering if there are any suggestions for the cases where the multivariate function we are approximating has very small values (to the point of underflow). For instance, if I would like to approximate a PDF in the Boltzmann form |
If you can first approximate the energy tensor in TT, you can estimate its average or max, and subtract them. If that's not possible (e.g. energy contains exact Inf), you can approximate a tempered PDF and estimate its maximum, from which you can derive an estimate of max(energy) for the subtraction in the computation with the actual beta. |
Thanks Professor Dolgov, I was able to compute an energy tensor and obtained an estimate of the average which is on the order of |
"the average" of what? If it's the average of energy that is as large as 1e72, this might be hopeless anyway. What would exp(-1e72) be? |
Hi, I usually get this error when I use
amen_cross
to approximate a function, especially when the dimension is large. Could you shed some lights on what the cause of this error might be?"""
Error using amen_cross (line 369)
The initial solution is exactly zero. Try a better initial guess\n
"""
The text was updated successfully, but these errors were encountered: