emukit: failed in converting 2nd argument `b' of _flapack.dpotrs to C/Fortran array

Y_init = np.array(Y_init,ndmin=2,order=‘F’) X_init = np.array(X_init,ndmin=2) import GPy from emukit.model_wrappers.gpy_model_wrappers import GPyModelWrapper from emukit.bayesian_optimization.acquisitions import ExpectedImprovement from emukit.core.optimization import AcquisitionOptimizer kernel = GPy.kern.Matern52(X_init.shape[1], ARD=True) gp = GPyModelWrapper(GPy.models.GPRegression(X_init, Y_init, kernel, noise_var=1e-10)) gives error:~\Anaconda3\lib\site-packages\gpy-1.9.6-py3.6-win-amd64.egg\GPy\util\linalg.py in dpotrs(A, B, lower) : error: failed in converting 2nd argument `b’ of _flapack.dpotrs to C/Fortran array X_init = [[ -5.5589826 384.25838475 751.38855262 164.3880191 1007.11674873] [ -1.08051782 382.02255555 200.88970441 268.82545867 588.76049642]] Y_init= [[0.37135806 0.31397561]]

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

I just had the same issue. It was a dimension mismatch, but the error message is super unclear.

For me it was a problem that arises in GPy.models.GPRegression() when X and y have different numbers of rows and the model tries to initialise and fails in the dpotrs call.

Perhaps we should raise an issue on GPy to do a dimension check??