Giter Club home page Giter Club logo

Comments (4)

rtqichen avatar rtqichen commented on July 2, 2024 3

This underflow error indicates that the system is too stiff for an explicit method to solve. The step size needs to be extremely small in order to satisfy the desired tolerance. If dopri5 can't solve it then adams will have the same problem. If you can get away with it, I'd suggest trying to increase the tolerance parameters first atol and rtol. This introduces more numerical error but easier/faster solves.

Stiffness is still a difficult problem to get around. Try architectures with nicer (analytic) activations function, e.g. softplus, Swish. We also used weight decay to reduce the complexity of the system.

from torchdiffeq.

Moxinilian avatar Moxinilian commented on July 2, 2024

Thank you for your answer. Is there a way to get information on those internal parameters for fine tuning?

from torchdiffeq.

rtqichen avatar rtqichen commented on July 2, 2024

Hmm you're right. It's not clear from the README.md or docstring.

The basic idea is each adaptive solver can produce an error estimate of the current step, and if the error is greater than some tolerance, then the step is redone with a smaller step size, and this repeats until the error is smaller than the provided tolerance.

The tolerance is calculated as atol + rtol * norm of current state, where the norm being used is the infinity norm (https://github.com/rtqichen/torchdiffeq/blob/master/torchdiffeq/_impl/misc.py#L152).

from torchdiffeq.

Moxinilian avatar Moxinilian commented on July 2, 2024

Maybe we could specify a minimum value as a parameter so it can try its best but chose that value if needed?

from torchdiffeq.

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.