示例#1
0
 def getstate(self):
     """
     Get the curent state of the class. This is only used to efficiently
     pickle the model. See also self.setstate
     """
     return Model.getstate(self) + [self.X,
             self.num_data,
             self.input_dim,
             self.kern,
             self.likelihood,
             self.output_dim,
             self._Xoffset,
             self._Xscale]
示例#2
0
文件: gp_base.py 项目: rajivsam/GPy
 def getstate(self):
     """
     Get the curent state of the class. This is only used to efficiently
     pickle the model. See also self.setstate
     """
     return Model.getstate(self) + [
         self.X,
         self.num_data,
         self.input_dim,
         self.kern,
         self.likelihood,
         self.output_dim,
         self._Xoffset,
         self._Xscale,
     ]