You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This is not a InfiniteOpt bug per se, but a situation in which using InfiniteOpt causes some headaches.
Basically, as discussed here, importing InfiniteOpt breaks KernelDensity.jl and any package that relies on it (e.g. AlgebraOfGraphics.jl).
To reproduce
import InfiniteOpt
import KernelDensity: kde
x =randn(1000)
kde(x)
As you can see, KernelDensity calls AbstractFFTs and this causes some InfiniteOpt code to be executed (around frame 14) which results in the error. If I understand it correctly InfiniteOpt re-defines this method:
which gets called in InfintieOpt has been imported.
This wouldn't be a huge problem, but in my case I'm trying to plot a KDE of some results, but loading/processing the data requires that my main module be imported and that makes use of InfiniteOpt, so I can't do the KDE.
The text was updated successfully, but these errors were encountered:
Thanks for finding this. This is a bug with the nonlinear interface where we currently have some temporary hacky code to deal with efficient nonlinear sums and products. I will look into this and make a patch.
Describe the bug
This is not a InfiniteOpt bug per se, but a situation in which using InfiniteOpt causes some headaches.
Basically, as discussed here, importing
InfiniteOpt
breaksKernelDensity.jl
and any package that relies on it (e.g.AlgebraOfGraphics.jl
).To reproduce
while
alone works.
This is an example stacktrace:
As you can see,
KernelDensity
callsAbstractFFTs
and this causes someInfiniteOpt
code to be executed (around frame 14) which results in the error. If I understand it correctlyInfiniteOpt
re-defines this method:which gets called in
InfintieOpt
has been imported.This wouldn't be a huge problem, but in my case I'm trying to plot a KDE of some results, but loading/processing the data requires that my main module be imported and that makes use of InfiniteOpt, so I can't do the KDE.
The text was updated successfully, but these errors were encountered: