deleted old tanh_warp and renamed warp_tanh_d to warp_tanh

This commit is contained in:
beckdaniel 2016-02-24 11:24:31 +00:00
parent 8deac1d058
commit 9039fae29e
3 changed files with 5 additions and 106 deletions

View file

@ -5,7 +5,7 @@ import numpy as np
from ..util.warping_functions import *
from ..core import GP
from .. import likelihoods
from GPy.util.warping_functions import TanhWarpingFunction_d
from GPy.util.warping_functions import TanhWarpingFunction
from GPy import kern
class WarpedGP(GP):
@ -15,7 +15,7 @@ class WarpedGP(GP):
kernel = kern.RBF(X.shape[1])
if warping_function == None:
self.warping_function = TanhWarpingFunction_d(warping_terms)
self.warping_function = TanhWarpingFunction(warping_terms)
self.warping_params = (np.random.randn(self.warping_function.n_terms * 3 + 1) * 1)
else:
self.warping_function = warping_function