mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 03:22:38 +02:00
Changed get_param and set_param to _get_params and _set_params
This commit is contained in:
parent
688d6ac7a5
commit
3c700dfa50
33 changed files with 239 additions and 358 deletions
|
|
@ -17,16 +17,16 @@ class white(kernpart):
|
|||
self.D = D
|
||||
self.Nparam = 1
|
||||
self.name = 'white'
|
||||
self.set_param(np.array([variance]).flatten())
|
||||
self._set_params(np.array([variance]).flatten())
|
||||
|
||||
def get_param(self):
|
||||
def _get_params(self):
|
||||
return self.variance
|
||||
|
||||
def set_param(self,x):
|
||||
def _set_params(self,x):
|
||||
assert x.shape==(1,)
|
||||
self.variance = x
|
||||
|
||||
def get_param_names(self):
|
||||
def _get_param_names(self):
|
||||
return ['variance']
|
||||
|
||||
def K(self,X,X2,target):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue