Changed get_param and set_param to _get_params and _set_params

This commit is contained in:
Neil Lawrence 2013-01-18 12:31:37 +00:00
parent 688d6ac7a5
commit 3c700dfa50
33 changed files with 239 additions and 358 deletions

View file

@ -33,7 +33,7 @@ class WarpingFunction(object):
"""inverse function transformation"""
raise NotImplementedError
def get_param_names(self):
def _get_param_names(self):
raise NotImplementedError
def plot(self, psi, xmin, xmax):
@ -151,7 +151,7 @@ class TanhWarpingFunction(WarpingFunction):
return gradients
def get_param_names(self):
def _get_param_names(self):
variables = ['a', 'b', 'c']
names = sum([['warp_tanh_%s_t%i' % (variables[n],q) for n in range(3)] for q in range(self.n_terms)],[])
return names