1102387a7671ef00cc0c5ceb8a316c23779d9f4a,GPy/kern/_src/periodic.py,PeriodicExponential,parameters_changed,#PeriodicExponential#,83

Before Change


        self.b = [1]

        self.basis_alpha = np.ones((self.n_basis,))
        self.basis_omega = np.array(sum([[i*2*np.pi/self.period]*2 for i in  range(1,self.n_freq+1)],[]))[:,0]
        self.basis_phi =   np.array(sum([[-np.pi/2, 0.]  for i in range(1,self.n_freq+1)],[]))

        self.G = self.Gram_matrix()
        self.Gi = np.linalg.inv(self.G)

After Change


        self.b = [1]

        self.basis_alpha = np.ones((self.n_basis,))
        self.basis_omega = (2*np.pi*np.arange(1,self.n_freq+1)/self.period).repeat(2)
        self.basis_phi =   np.zeros(self.n_freq * 2)
        self.basis_phi[::2] = -np.pi/2

        self.G = self.Gram_matrix()
        self.Gi = np.linalg.inv(self.G)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 37

Instances


Project Name: SheffieldML/GPy
Commit Name: 1102387a7671ef00cc0c5ceb8a316c23779d9f4a
Time: 2014-03-13
Author: ibinbei@gmail.com
File Name: GPy/kern/_src/periodic.py
Class Name: PeriodicExponential
Method Name: parameters_changed


Project Name: SheffieldML/GPy
Commit Name: 1102387a7671ef00cc0c5ceb8a316c23779d9f4a
Time: 2014-03-13
Author: ibinbei@gmail.com
File Name: GPy/kern/_src/periodic.py
Class Name: PeriodicExponential
Method Name: parameters_changed


Project Name: SheffieldML/GPy
Commit Name: 1102387a7671ef00cc0c5ceb8a316c23779d9f4a
Time: 2014-03-13
Author: ibinbei@gmail.com
File Name: GPy/kern/_src/periodic.py
Class Name: PeriodicMatern32
Method Name: parameters_changed


Project Name: SheffieldML/GPy
Commit Name: 1102387a7671ef00cc0c5ceb8a316c23779d9f4a
Time: 2014-03-13
Author: ibinbei@gmail.com
File Name: GPy/kern/_src/periodic.py
Class Name: PeriodicMatern52
Method Name: parameters_changed