mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
Bug fixed
This commit is contained in:
parent
94b19242f0
commit
45f8751769
1 changed files with 2 additions and 1 deletions
|
|
@ -320,7 +320,8 @@ class HalfT(Prior):
|
||||||
return "hT(" + str(np.round(self.A)) + ', ' + str(np.round(self.nu)) + ')'
|
return "hT(" + str(np.round(self.A)) + ', ' + str(np.round(self.nu)) + ')'
|
||||||
|
|
||||||
def lnpdf(self,theta):
|
def lnpdf(self,theta):
|
||||||
return self.constant*(theta>0) -.5*(self.nu+1) * np.log( 1.+ (1./self.nu) * (theta/self.A)**2 )
|
stop
|
||||||
|
return (theta>0) * ( self.constant -.5*(self.nu+1) * np.log( 1.+ (1./self.nu) * (theta/self.A)**2 ) )
|
||||||
|
|
||||||
#theta = theta if isinstance(theta,np.ndarray) else np.array([theta])
|
#theta = theta if isinstance(theta,np.ndarray) else np.array([theta])
|
||||||
#lnpdfs = np.zeros_like(theta)
|
#lnpdfs = np.zeros_like(theta)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue