4143f005403808d11928b9772a9a40679a4d441e,GPy/models/bayesian_gplvm_minibatch.py,BayesianGPLVMMiniBatch,_outer_init_full_values,#BayesianGPLVMMiniBatch#,136

Before Change


            return dict(meangrad=np.zeros(self.X.mean.shape),
                        vargrad=np.zeros(self.X.variance.shape))
        else:
            return dict(Xgrad=np.zeros(self.X.shape))

    def parameters_changed(self):
        super(BayesianGPLVMMiniBatch,self).parameters_changed()
        if isinstance(self.inference_method, VarDTC_minibatch):

After Change


            self.X.gradient = full_values["Xgrad"]

    def _outer_init_full_values(self):
        full_values = super(BayesianGPLVMMiniBatch, self)._outer_init_full_values()
        //if self.has_uncertain_inputs():
            //return dict(meangrad=np.zeros(self.X.mean.shape),
                        //vargrad=np.zeros(self.X.variance.shape))
        //else:
            //return dict(Xgrad=np.zeros(self.X.shape))
        return full_values

    def parameters_changed(self):
        super(BayesianGPLVMMiniBatch,self).parameters_changed()
        if isinstance(self.inference_method, VarDTC_minibatch):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: SheffieldML/GPy
Commit Name: 4143f005403808d11928b9772a9a40679a4d441e
Time: 2015-08-27
Author: alan.daniel.saul@gmail.com
File Name: GPy/models/bayesian_gplvm_minibatch.py
Class Name: BayesianGPLVMMiniBatch
Method Name: _outer_init_full_values


Project Name: quiltdata/quilt
Commit Name: 471cfac491d5766a0ac3e20bfe2c8c486ba12cc6
Time: 2017-05-15
Author: dima@gmail.com
File Name: quilt/tools/core.py
Class Name: RootNode
Method Name: __json__


Project Name: quiltdata/quilt
Commit Name: f49819a1208c70e25e84a5302132cb6f34eb4fa1
Time: 2017-05-08
Author: dima@gmail.com
File Name: quilt_server/core.py
Class Name: RootNode
Method Name: __json__