mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 03:22:38 +02:00
[kern] inner transformation to types, start for the multitype pandas arrays
This commit is contained in:
parent
7c173056ed
commit
346cb4693e
1 changed files with 4 additions and 1 deletions
|
|
@ -70,7 +70,10 @@ class Kern(Parameterized):
|
||||||
|
|
||||||
@Cache_this(limit=20)
|
@Cache_this(limit=20)
|
||||||
def _slice_X(self, X):
|
def _slice_X(self, X):
|
||||||
return X[:, self._all_dims_active]
|
try:
|
||||||
|
return X[:, self._all_dims_active].astype('float')
|
||||||
|
except:
|
||||||
|
return X[:, self._all_dims_active]
|
||||||
|
|
||||||
def K(self, X, X2):
|
def K(self, X, X2):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue