|
Hello Pamphile,
If we return nan or 0 your script will silently go on and you wont detect the error until it propagates at some higher level, this is not safe. You can still filter out null-variance components of your doe after evaluation before feeding it to the Sobol
algorithm.
j De : [email protected] <[email protected]> de la part de roy <[email protected]>
Envoyé : jeudi 26 juillet 2018 18:04:07 À : users Objet : [ot-users] TypeError with Sobol' indices Hi everyone,
I am trying to compute Sobol’ indices for a functional output (f(R^i) -> R^j).
Due to some boundary conditions in my code, some value of the output vector are constants.
At these points, I get a TypeError. This is normal because of the variance being equal to 0.
Using getFirstOrderIndices, I can call it iteratively and avoid the null variance points.
But with getAggregatedFirstOrderIndices, it does not take an index so it will fail for the whole vector.
In both cases, it could be handy to return a NAN, 0 or something else if it detects null variance instead of returning an error.
Thanks for the support.
Sincerely,
Pamphile ROY
PhD candidate in Uncertainty Quantification CERFACS—Toulouse (31)—France +33 (0) 5 61 19 31 57 +33 (0) 7 86 43 24 22 |
_______________________________________________ OpenTURNS users mailing list [email protected] http://openturns.org/mailman/listinfo/users
