mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-05 14:55:15 +02:00
Merge branch 'master' into SGD
This commit is contained in:
commit
d4a539a2d1
1 changed files with 3 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ class linear(kernpart):
|
|||
self.Nparam = 1
|
||||
self.name = 'linear'
|
||||
if variances is not None:
|
||||
if isinstance(variances, float):
|
||||
variances = np.array([variances])
|
||||
|
||||
assert variances.shape == (1,)
|
||||
else:
|
||||
variances = np.ones(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue