ValueError: _compute_kernel_Gaussian: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (m, p),(p),()->(m) (size 2 is different from 1)
The failure is due to density_ratio being a 2d multivariate estimator, but a 1d linear space is passed as an argument to the compute_density_ratio method. Unlike numpy, numba places a strict constraint on operand dimensions with the guvectorizesignature argument; numpy simply broadcasts.
As of 5757f365e0c68666c50e2d3f2dc46e72a0e85b2a, when
compute_kernel_Gaussian
function is executed withnumba
(bothcpu
andparallel
as theset_compute_kernel_target
target
argument), thetests.test_RuLSIF::test_alphadensratio_2d
test fails with the following error:The failure is due to
density_ratio
being a 2d multivariate estimator, but a 1d linear space is passed as an argument to thecompute_density_ratio
method. Unlikenumpy
,numba
places a strict constraint on operand dimensions with theguvectorize
signature
argument;numpy
simply broadcasts.