Closed gszep closed 4 years ago
the following now works:
using Flux,KernelDensity
data = param(randn(100))
xrange = -3:0.1:3
kde(data,xrange,bandwidth=0.1)
closing this request since all changes have been moved into patches https://github.com/gszep/FluxContinuation/blob/master/patches/KernelDensity.jl
How are those patches meant to be applied?
download that file and instead of using KernelDensity
write include("pathtopatch/KernelDensity.jl")
note that currently the Fourier transform for Tracked
types is redirected to a naivedft
which unfortunately is N^2. this makes the patch unusable for more than ~4000 tracked data inputs. I'm working on a solution to use the NlogN fft
algorithms
I would like the
kde
method to be used as part of a machine learning pipline. Therefore we need all methods to be extended toTrackedArray
types. The plan would be to extendunivariate.jl
first. Which can be done by by-passing the use ofrfft,irfft
fromFFTW.jl
(which is not compatible with TrackedArrays) and use theconv
layer fromFlux.jl
closes #76