GithubHelp home page GithubHelp logo

Comments (3)

yuki-koyama avatar yuki-koyama commented on June 5, 2024

Hi,

with linear kernel they grow to infinity, with gaussian kernel they fade to 0

This is true, and this is known as a limitation of RBF interpolation (and many other interpolation techniques) --- interpolation techniques are simply not good at extrapolation.

I'd be happy if value computed 'outside' matched nearest sample or close to that

In one-dimensional cases, it is easy to achieve this by inserting some if statements before calling RBF interpolation. E.g., if x is larger than x_max (in data) or smaller than x_min (in data), then return f(x_max) or f(x_min).

If the dimensionality is 2 or more, then it is not very trivial. However, there are some mathematical techniques that can be used here (e.g., [*]). This is not yet implemented in this library, unfortunately.

[*]: Section 3.1: Radial basis function with polynomial term https://dl.acm.org/doi/10.1145/2614028.2615425

from mathtoolbox.

shekh avatar shekh commented on June 5, 2024

Thanks for replying, well at least I got a confirmation that it is not simple (need multiple dimensions).

from mathtoolbox.

yuki-koyama avatar yuki-koyama commented on June 5, 2024

Note that the latest version provides an option (enabled by default) about using "polynomial term", and it provides better extrapolation behavior.

polynomial

from mathtoolbox.

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.