Computing the linear kernel as the inner product:
if X = \R^n, then we can define a 'linear' covariance
kernel L: X x X ---> \R by L(x, y) = <x, y>,
which reduces to the usual linear kernel when n = 1.
In addition to the covariance.py, gp.py was changed to
allow for the new type signature. Furthermore, _cov_maker(...)
was changed to _cov_grad_maker(...) to accommodate the gradient
for this kernel.
Finally a test wast added to test/conformance/sps/test_gp.py to
test this new kernel with multivariate input.
Linear kernel now takes multivariate input.
Computing the linear kernel as the inner product: if X = \R^n, then we can define a 'linear' covariance kernel L: X x X ---> \R by L(x, y) = <x, y>, which reduces to the usual linear kernel when n = 1.
In addition to the covariance.py, gp.py was changed to allow for the new type signature. Furthermore, _cov_maker(...) was changed to _cov_grad_maker(...) to accommodate the gradient for this kernel.
Finally a test wast added to test/conformance/sps/test_gp.py to test this new kernel with multivariate input.
The changes were tested by running:
No errors occurred.