infer
infer copied to clipboard
EigenvaluesInPlace exceeded {0} iterations
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?
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.