mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 12:02:38 +02:00
added a log-tanh function
This commit is contained in:
parent
419f2fb284
commit
0d943ac98e
2 changed files with 110 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import numpy as np
|
|||
from ..util.warping_functions import *
|
||||
from ..core import GP
|
||||
from .. import likelihoods
|
||||
from paramz import ObsAr
|
||||
from GPy.util.warping_functions import TanhFunction
|
||||
from GPy import kern
|
||||
|
||||
|
|
@ -31,6 +32,10 @@ class WarpedGP(GP):
|
|||
GP.__init__(self, X, self.transform_data(), likelihood=likelihood, kernel=kernel)
|
||||
self.link_parameter(self.warping_function)
|
||||
|
||||
def set_XY(self, X=None, Y=None):
|
||||
self.Y_untransformed = Y.copy()
|
||||
GP.set_XY(self, X, self.transform_data())
|
||||
|
||||
def _scale_data(self, Y):
|
||||
self._Ymax = Y.max()
|
||||
self._Ymin = Y.min()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue