Giter Site home page Giter Site logo

Comments (8)

OmriTreidel avatar OmriTreidel commented on June 18, 2024 1

Yep, I'm already working on it.

from kerneldensity.jl.

simonbyrne avatar simonbyrne commented on June 18, 2024 1

Note that the choice of the number of bins here should be different than a histogram.

In a histogram, you choose the number of bins as a method of avoiding overfitting (i.e. regularization).

For a KDE, the number of bins just affects the numerical resolution of the resulting function, so you want to choose as many as your computational budget allows (up to the resolution of your screen, or whatever needs you have). Ideally it should also be a power of 2 to gain the most advantage from the FFTs. The regularization is handled by the kernel function.

The 2048 was admittedly a pretty arbitrary pick, based on scaling up R's choice (512) by a bit.

from kerneldensity.jl.

OmriTreidel avatar OmriTreidel commented on June 18, 2024 1

Whenever he is talking to his wife/girlfriend ;)

from kerneldensity.jl.

ararslan avatar ararslan commented on June 18, 2024

That seems like a good idea to me. Would you be interested in putting together a PR for this?

from kerneldensity.jl.

OmriTreidel avatar OmriTreidel commented on June 18, 2024

Thank for that comments, I haven't noticed that. This ticket seems rather pointless than. Unless there is another reason to do it?

from kerneldensity.jl.

ararslan avatar ararslan commented on June 18, 2024

We could implement a different a more data-aware default than 2048. Perhaps there's some literature around that recommends something along those lines for kernel density estimation rather than histograms?

from kerneldensity.jl.

OmriTreidel avatar OmriTreidel commented on June 18, 2024

I think Simon is right, it doesn't seem to make any difference for the resulting density other than sampling.

from kerneldensity.jl.

ararslan avatar ararslan commented on June 18, 2024

I think Simon is right

Agreed. After all, when isn't he right? 😄

from kerneldensity.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.