Giter Club home page Giter Club logo

Comments (4)

lxuechen avatar lxuechen commented on June 4, 2024

Hi, thanks for the note.

Is it Wiener process with zero mean and unit volatility?

That's loosely true up to the fact that W(t) may be multidimensional.

What is exactly batch_size?

You may interpret this as the number of particles that's being simulated which evolves as according to the SDE.

What is exactly brownian_size?

This is the dimension of the Brownian motion (it is not necessarily the size of the state). In most classic texts, the state dimension is denoted by d, and the dimension of the Brownian motion is denoted by m.

but if we set size=1, we see TypeError: int object is no iterable

We made it clear in the documentation that the input should be a tuple of int, as opposed to a single integer. If you set size=(1,), it should work, since (1,) is a tuple of one integer 1.

from torchsde.

acubed3 avatar acubed3 commented on June 4, 2024

@lxuechen , thank you so much for your reply!

I will test all the point about tuple of int and will comment it later. The clarification about batch_size is almost clear.

What about my question how to add the Wiener process with volatility != 1 to each equation of a set of coupled SDEs? Is the presented definition of g (it is given in my first comment) true or not?

from torchsde.

lxuechen avatar lxuechen commented on June 4, 2024

Note g should return a matrix of size (batch_size, state_size, brownian_size) when the noise_type is general. Again, batch_size is the number of particles (note one particle can be multi-dimensional). state_size is the dimension of each particle, and brownian_size is the size of the Brownian motion. Mathematically, during simulation, a matmul is performed behind for this g term, e.g., with Euler solver, you get X_{t+dt} = X_t + f(X_t, t) dt + matmul(g(X_t, t), W_{t + dt} - W_t).

Indirectly, this gives you a way to control for the volatility.

from torchsde.

lxuechen avatar lxuechen commented on June 4, 2024

Closing the issue for now. Free feel to reopen/followup if further clarification is needed.

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.