Comments (3)
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.
Thanks for replying, well at least I got a confirmation that it is not simple (need multiple dimensions).
from mathtoolbox.
Note that the latest version provides an option (enabled by default) about using "polynomial term", and it provides better extrapolation behavior.
from mathtoolbox.
Related Issues (20)
- [New Algorithm] Augmented Lagrangian method
- Remove NLopt dependency?
- Line search in BFGS and L-BFGS sometimes fail HOT 1
- The GPR demo fails when the number of data points is large HOT 2
- The GPR demo sometimes fails to find appropriate hyperparameters
- [GPR] Support data normalization HOT 1
- Add support of GitHub Actions for Windows/macOS HOT 2
- Maximization of acquisition values in Bayesian optimization seems not successful
- Generate warnings when linking python bindings HOT 2
- Support pip for python?
- Remove Travis?
- Windows support HOT 2
- [GPR] python binding
- [GPR] multiple start for hyperparameter tuning
- Hyperparameter in the GP-UCB acquisition function
- [New Algorithm] Latin Hypercube Sampling
- RBF interpolation speed HOT 4
- [RBF] Radial basis function with polynomial term
- Adding z to interpolation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mathtoolbox.