Coder Social home page Coder Social logo

Failure to converge (again...) about lbfgspp HOT 2 CLOSED

yixuan avatar yixuan commented on June 24, 2024
Failure to converge (again...)

from lbfgspp.

Comments (2)

yixuan avatar yixuan commented on June 24, 2024

It might be numerical issues. The Gaussian kernel computes the exponential function of the squared distance. For example, in your example the distance between -4 and 4 is 8, so when l=1, the kernel computes exp(-8^2/2)=1.266417e-14. Then when you invert the kernel matrix you get pretty large gradient, and the line search may fail. I agree that some more mature software may handle this better, but given the nature of the kernel function, there can be lots of instabilities. A good initial value is always appreciated.

Specific to your problem, let me think of a better way to computing the gradient.

from lbfgspp.

Svalorzen avatar Svalorzen commented on June 24, 2024

I think you might be right. Now I realize that the Python code actually uses numerical gradients (as I don't pass it the derivative), so it might be able to avoid the numerical instabilities at the price of performance?

I am looking at GPy's code also to see if I can find a different way to compute the gradient..

from lbfgspp.

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.