mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-15 06:52:39 +02:00
[kern] fix #440
This commit is contained in:
parent
903b88aed3
commit
c1056416f2
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class Kern(Parameterized):
|
||||||
if active_dims is None:
|
if active_dims is None:
|
||||||
active_dims = np.arange(input_dim)
|
active_dims = np.arange(input_dim)
|
||||||
|
|
||||||
self.active_dims = np.asarray(active_dims, np.int_)
|
self.active_dims = np.atleast_1d(np.asarray(active_dims, np.int_))
|
||||||
|
|
||||||
self._all_dims_active = np.atleast_1d(self.active_dims).astype(int)
|
self._all_dims_active = np.atleast_1d(self.active_dims).astype(int)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue