mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 21:12:38 +02:00
fixed strange bug. In python 3, numbers startin 0 are octal.
This commit is contained in:
parent
ec163a3134
commit
f8376765c6
2 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ from scipy.special import ndtr as std_norm_cdf
|
|||
#define a standard normal pdf
|
||||
_sqrt_2pi = np.sqrt(2*np.pi)
|
||||
def std_norm_pdf(x):
|
||||
x = np.clip(x,-1e150,1e150)
|
||||
return np.exp(-np.square(x)/2)/_sqrt_2pi
|
||||
|
||||
def inv_std_norm_cdf(x):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue