mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 12:02:38 +02:00
deleted old tanh_warp and renamed warp_tanh_d to warp_tanh
This commit is contained in:
parent
8deac1d058
commit
9039fae29e
3 changed files with 5 additions and 106 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue