Open Leon-Noirclerc opened 4 months ago
Create a custom grid, or give a num_points
that is large enough.
Beware that FFTKDE discretizes the data onto the grid, and in high dimension many grid points might be empty (no data point is close to it) so you need a very fine grid in order to avoid discretization errors. Using KDEpy.TreeKDE
or even scipy.stats.gaussian_kde
might be more reasonable.
Hello everyone, I am trying to evaluate a fitted
FFTKDE
on high dimensional data ( dimension greater than 10), but this fails with anAssertionError
. The error comes from the methodautogrid
inKDEpy/utils.py
. When passing an empty grid it calls:Which is a list of 1 for dims greater than 10 and will trigger the
assert points >= 2
on line 126. However in the feature summary of your documentation I saw that the supported number of dimensions is set to Any. Should I evaluate theFFTKDE
differently on high dimensional data ? What would be your recommendation here ? Thanks !