mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 12:02:38 +02:00
renamed TanhWarpingFunction to TanhFunction
This commit is contained in:
parent
50f72f0294
commit
b266b578cd
3 changed files with 5 additions and 5 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
|
||||
from GPy.util.warping_functions import TanhFunction
|
||||
from GPy import kern
|
||||
|
||||
class WarpedGP(GP):
|
||||
|
|
@ -17,7 +17,7 @@ class WarpedGP(GP):
|
|||
if kernel is None:
|
||||
kernel = kern.RBF(X.shape[1])
|
||||
if warping_function == None:
|
||||
self.warping_function = TanhWarpingFunction(warping_terms)
|
||||
self.warping_function = TanhFunction(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