infer icon indicating copy to clipboard operation
infer copied to clipboard

EigenvaluesInPlace exceeded {0} iterations

Open hanlong-chen-1047 opened this issue 9 months ago • 1 comments

How should we go about debugging errors of the following type? EigenvaluesInPlace exceeded {0} iterations https://github.com/dotnet/infer/blob/main/src/Runtime/Core/Maths/Matrix.cs#L2256

In particular, I am seeing:

EigenvaluesInPlace exceeded 150 iterations
    at Microsoft.ML.Probabilistic.Math.Matrix.EigenvaluesInPlace(Matrix A, Double[] eigenvaluesReal, Double[] eigenvaluesImag)
    at Microsoft.ML.Probabilistic.Factors.GaussianOp_Slow.GetRoots(IList`1 coeffs, Double[]& rootsReal, Double[]& rootsImag)
    at Microsoft.ML.Probabilistic.Factors.GaussianProductOp_Slow.AAverageConditional(Gaussian Product, Gaussian A, Gaussian B)
    at Microsoft.ML.Probabilistic.Factors.GaussianProductOp.AAverageConditional(Gaussian Product, Gaussian A, Gaussian B)
    ....

Does it just mean that it is running for too many iterations?

hanlong-chen-1047 avatar Apr 12 '25 06:04 hanlong-chen-1047

It means that the eigenvalue algorithm being used is not converging for the given matrix. If you can get the debugger to stop on this line, you can inspect the arguments and post a repro for us to look at. The most helpful arguments would be the ones to GaussianProductOp.AAverageConditional.

tminka avatar May 20 '25 18:05 tminka