mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +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
|
|
@ -83,6 +83,9 @@ class GP(Model):
|
|||
assert isinstance(likelihood, likelihoods.Likelihood)
|
||||
self.likelihood = likelihood
|
||||
|
||||
if self.kern._effective_input_dim != self.X.shape[1]:
|
||||
warnings.warn("Your kernel has a different input dimension {} then the given X dimension {}. Be very sure this is what you want and you have not forgotten to set the right input dimenion in your kernel".format(self.kern._effective_input_dim, self.X.shape[1]))
|
||||
|
||||
#handle the mean function
|
||||
self.mean_function = mean_function
|
||||
if mean_function is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue