question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Negative eigenvalue

See original GitHub issue

in cma.py CMA.tell() I somehow get to this point:

self._B, self._D = None, None
self._C = 
[[  8.14737017e-04   2.68770961e-02  -6.44404672e-03]
 [  2.68770961e-02   8.40956376e-01  -4.00553778e-01]
 [ -6.44404672e-03  -4.00553778e-01   2.18242242e+00]]
D2 = 
[ -6.44813495e-05   7.31257026e-01   2.29300099e+00]
D = 
[        nan  0.85513568  1.51426582]

This leads to 
self._C =
[[ nan  nan  nan]
 [ nan  nan  nan]
 [ nan  nan  nan]]
at the end of CMA.tell()

Then in CMA._sample_solution()
D2, B = np.linalg.eigh(self._C)
crashes for obvious reasons

LinAlgError: Eigenvalues did not converge

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

3reactions
ColinBrosseauAlgoluxcommented, Jun 22, 2020

thank you @c-bata I’m testing #34 since friday and I’ve not found error again. Will tell you if problem appears again.

Also, I think I’ll contribute to this project on my personal time.

1reaction
ColinBrosseauAlgoluxcommented, Jun 19, 2020

This error happens once in a while. Hard to tell when. I’d need to work on a way to make it reproducible. I’ve just looked at https://github.com/CyberAgent/cmaes/pull/34 and it seems this is what I actually get. I’ll try this PR to see if it fixes it.

I’m using 0.5.0

Also, I’ve seen some indications in the code like # (p.28) I think it refers to some book. Which one?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning Messages Related to Negative Eigenvalues in Abaqus
Physically, negative eigenvalue messages are often associated with a loss of stiffness or solution uniqueness in the form of either material ...
Read more >
how to solve this negative eigen value error? - Eng-Tips
Negative eigenvalues indicate that some instabilities occur in the analysis. In some cases they are related to buckling but here the reason must ......
Read more >
Dealing with negative eigenvalues due to floating point errors
The error occurs during the eigenvalue decomposition. Something about the structure of my data results in negatives for the eigen values.
Read more >
Can anyone help me with "negative eigen value" error in ...
What is the step you are using? The negative eigenvalue in context of buckling basically means the structure may buckle if the load...
Read more >
When will a matrix have negative eigenvalues? And ... - Quora
So, If an eigen vector is in the negative direction relative to the origin of the vector space, then its eigen value will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found