You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function calc.calc_overschrijding() sometimes warns "RuntimeWarning: invalid value encountered in scalar power return -p_val_gt_threshold * (alpha * x**(alpha - 1)) * (sigma**(-alpha)) * np.exp(-((x/sigma)**alpha) + ((threshold/sigma)**alpha))". This for instance happens in test_calc_overschrijding. This happens due to nan values from powers like here. The source is optimize.minimize() and further down the line (sigma ** (-alpha)) (and others) in der_pfunc(). This happens in one of the iterations of the Nelder-Mead optimization function, might be resolvable by supplying additional settings.
Can be reproduced by checking np.isnan(sigma ** (-alpha)) in der_pfunc() when executing:
The function
calc.calc_overschrijding()
sometimes warns"RuntimeWarning: invalid value encountered in scalar power return -p_val_gt_threshold * (alpha * x**(alpha - 1)) * (sigma**(-alpha)) * np.exp(-((x/sigma)**alpha) + ((threshold/sigma)**alpha))"
. This for instance happens intest_calc_overschrijding
. This happens due to nan values from powers like here. The source isoptimize.minimize()
and further down the line(sigma ** (-alpha))
(and others) inder_pfunc()
. This happens in one of the iterations of the Nelder-Mead optimization function, might be resolvable by supplying additional settings.Can be reproduced by checking
np.isnan(sigma ** (-alpha))
inder_pfunc()
when executing:The text was updated successfully, but these errors were encountered: