Giter VIP home page Giter VIP logo

Comments (5)

RonTeichner avatar RonTeichner commented on July 17, 2024

In the file supplied, if you change sim_duration at line 35 from 20 to 1 you exactly recover the example you supplied and it runs with no problems.

from torchsde.

patrick-kidger avatar patrick-kidger commented on July 17, 2024

This occurs when trying to solve over a long time interval with a small dt.

You can resolve it by doing import sys; sys.setrecursionlimit(5000). (Or generally some big number -- 1000 is the default.)

It's possible to resolve this more elegantly at the library level, I just haven't gotten around to implementing it yet.

from torchsde.

RonTeichner avatar RonTeichner commented on July 17, 2024

It does extends the simulation time. Thank you, and it is a good opportunity to thank you in general for this novel project.

Getting back to the subject, the value of dt is internally defined in your library, right?
The input time-vector to sdeint is made of queries times, which do not affect the internal dt value, correct?

Thanks

from torchsde.

patrick-kidger avatar patrick-kidger commented on July 17, 2024

Thank you for your kind words.

dt is a separate argument to sdeint and sdeint_adjoint. It has a default value, but it's usually best to set it yourself, as reasonable values can be quite different depending on the problem.

from torchsde.

RonTeichner avatar RonTeichner commented on July 17, 2024

Thank you

from torchsde.

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.