-
Notifications
You must be signed in to change notification settings - Fork 93
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
KarhunenLoeveSVDAlgorithm seems to truncate the expansion from v1.19 #2139
Comments
on this example eigenvalues decrease very fast, and when we compute the cumulated sum for the criteria the sum stays the same from the 3rd value as we add a big value (~15) to a tiny one (9e-30): |
Yes, you're right. But I think it is up to the user to remove the 7 non-significant eigenvalues. |
It should be enough to replace '<' by '<=' here |
Your proposed fix seems to be good. Thanks. |
Hello,
I'm upgrading openturns to 1.19 in gemseo and unfortunately a test fails due to a change in
KarhunenLoeveSVDAlgorithm
(maybe something in this PR).The test relies on the following code (I removed the gemseo part and kept the openturns + numpy one). It considers a 100-length process sample over a 10-length 1D mesh. The number of eigenvalues was equal to 10 up to the version 1.18 and is equal to 3 with the version 1.19. As it uses
KarhunenLoeveSVDAlgorithm
without thresholding, the value 10 seems to me correct.Does the v.1.19 truncate the expansion by default?
The text was updated successfully, but these errors were encountered: