elif mode == 'train':
tem = np.atleast_2d(x[:,der])/ell[der]
A *= spdist.cdist(tem,tem,'sqeuclidean')
The above causes the cdist function to return [[0]]. The below fix works for me. It appears that I am using an older version of the code than is on in the master branch though. I got mine from the pip repository.
elif mode == 'train':
tem = (np.atleast_2d(x[:,der])/ell[der]).T
A *= spdist.cdist(tem,tem,'sqeuclidean')
The bug is located in line https://github.com/marionmari/pyGPs/blob/master/pyGPs/Core/cov.py#L928 The current line is:
The above causes the
cdist
function to return[[0]]
. The below fix works for me. It appears that I am using an older version of the code than is on in the master branch though. I got mine from thepip
repository.