GithubHelp home page GithubHelp logo

Comments (4)

ChrisRackauckas avatar ChrisRackauckas commented on June 19, 2024

Closing this as just a versioning issue. Since the real term is not in the dictionary (it's something to the 1126 power or something like that, see the equations), it's not defined what term will happen even as data->infinity. This is unlike the Lotka-Volterra example, where the true term is in the dictionary so you should get it when the data is large enough. Here, you get a sparse approximating model. We noticed that after SInDy was updated to a more optimized optimizer, it turned out this term changed a little bit from the linear one to one with some nonlinear interactions (the two you show here). Both extrapolate fine, so I'm sure you can tune the parameters of SInDy to pull out slightly different models (but if you raise the threshold too high you get something not sparse of course).

So I wouldn't say this is a versioning issue but rather a modeling question, as the sparse fitting forms are not unique here, but still give different forms that both extrapolate well. I don't know how to highlight this well but hopefully it's clear from playing around with it.

from universal_differential_equations.

matutenun avatar matutenun commented on June 19, 2024

thanks for you answer Chris. If i understand correct, both basis should extrapolate in a similar way... but It does not seem to be the case here. The one I got straight from running the example does not seem to do a good job. But! I will double check everything now that I updated all the packages. I was having issues with line 235 z = Ψ([S/N,I,D/N]) with the error "MethodError: objects of type SparseIdentificationResult are not callable" so I had to code the function by directly inserting F([S/N,I,D/N])= p₁ * u₂ + u₁ * u₂ * p₂ + u₁ ^ 2 * u₂ * p₃ . Thus I could and probably be wrong. Will follow up here. Thanks!

from universal_differential_equations.

ChrisRackauckas avatar ChrisRackauckas commented on June 19, 2024

Interesting. I'd say file an issue on DataDrivenDiffEq if something seems up. We should make that have integration tests with these examples.

from universal_differential_equations.

AlCap23 avatar AlCap23 commented on June 19, 2024

I'll have a look asap, so possibly within the next week. Definitely will update the example with a PR to match the interface.

from universal_differential_equations.

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.