[#198] checking input dim versus X dim and raising a warning if there is a missmatch

This commit is contained in:
mzwiessele 2015-10-13 08:25:13 +01:00
parent 70bc2fbe99
commit 5b57f75b62
3 changed files with 12 additions and 5 deletions

View file

@ -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]