7916c5f9ead987c514e4055efc74a6d45bebce59,GPy/core/parameterization/priors.py,HalfT,__str__,#HalfT#,319

Before Change


        self.constant = gammaln(.5*(self.nu+1.)) - gammaln(.5*self.nu) - .5*np.log(np.pi*self.A*self.nu)

    def __str__(self):
        return "hT(" + str(np.round(self.A)) + ", " + str(np.round(self.nu)) + ")"

    def lnpdf(self,theta):
        return (theta>0) * ( self.constant -.5*(self.nu+1) * np.log( 1.+ (1./self.nu) * (theta/self.A)**2 ) )

After Change


        self.constant = gammaln(.5*(self.nu+1.)) - gammaln(.5*self.nu) - .5*np.log(np.pi*self.A*self.nu)

    def __str__(self):
        return "hT({:.2g}, {:.2g})".format(self.A, self.nu)

    def lnpdf(self,theta):
        return (theta>0) * ( self.constant -.5*(self.nu+1) * np.log( 1.+ (1./self.nu) * (theta/self.A)**2 ) )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 13

Instances


Project Name: SheffieldML/GPy
Commit Name: 7916c5f9ead987c514e4055efc74a6d45bebce59
Time: 2014-10-10
Author: alan.daniel.saul@gmail.com
File Name: GPy/core/parameterization/priors.py
Class Name: HalfT
Method Name: __str__


Project Name: SheffieldML/GPy
Commit Name: 7916c5f9ead987c514e4055efc74a6d45bebce59
Time: 2014-10-10
Author: alan.daniel.saul@gmail.com
File Name: GPy/core/parameterization/priors.py
Class Name: InverseGamma
Method Name: __str__


Project Name: SheffieldML/GPy
Commit Name: 7916c5f9ead987c514e4055efc74a6d45bebce59
Time: 2014-10-10
Author: alan.daniel.saul@gmail.com
File Name: GPy/core/parameterization/priors.py
Class Name: Gamma
Method Name: __str__


Project Name: SheffieldML/GPy
Commit Name: 7916c5f9ead987c514e4055efc74a6d45bebce59
Time: 2014-10-10
Author: alan.daniel.saul@gmail.com
File Name: GPy/core/parameterization/priors.py
Class Name: HalfT
Method Name: __str__


Project Name: SheffieldML/GPy
Commit Name: 7916c5f9ead987c514e4055efc74a6d45bebce59
Time: 2014-10-10
Author: alan.daniel.saul@gmail.com
File Name: GPy/core/parameterization/priors.py
Class Name: Uniform
Method Name: __str__