mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 11:32:39 +02:00
[#198] checking input dim versus X dim and raising a warning if there is a missmatch
This commit is contained in:
parent
70bc2fbe99
commit
5b57f75b62
3 changed files with 12 additions and 5 deletions
|
|
@ -62,6 +62,10 @@ class Kern(Parameterized):
|
|||
from .psi_comp import PSICOMP_GH
|
||||
self.psicomp = PSICOMP_GH()
|
||||
|
||||
@property
|
||||
def _effective_input_dim(self):
|
||||
return self._all_dims_active.size
|
||||
|
||||
@Cache_this(limit=20)
|
||||
def _slice_X(self, X):
|
||||
return X[:, self._all_dims_active]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue