Comments (4)
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.
@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.
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.
Closing the issue for now. Free feel to reopen/followup if further clarification is needed.
from torchsde.
Related Issues (20)
- How to customize timestep to have ts=[0, T], instead of [0, 1] where (T>1) HOT 1
- Suggest to loosen the dependency on boltons HOT 1
- Using "*" in version speficiers is deprecated and breaks some installs HOT 3
- Defining noise type for vector-valued homogeneous SDE HOT 1
- vector-valued SDE cumbersome workflow HOT 1
- Zero drift and zero diffusion matrices lead to non-zero changes of variable
- Irregular data and sampling posterior in latent_sde_lorenz.py
- Low CPU and GPU usage in training sde_gan, Seeking Help to Improve Performance. HOT 2
- Different `t` for data in a minibatch HOT 5
- torchsde pypi package is misformated HOT 26
- Deprecation torchsde version HOT 5
- Something went wrong Expecting value: line 1 column 1 (char 0) HOT 1
- Incorporating real stock time series data
- SDE-LSTM structure for time series forecasting
- Performance Improvement Inquiry: Experiencing Slow Execution with TorchSDE HOT 2
- Latent SDE failed to generate longer samples
- issue with my text to image ai Device type privateuseone is not supported for torch.Generator() api. HOT 1
- 我的 Mac上 只有torchsde-0.2.6.dist-info,怎样才能安装insightface
- 如果 torchsde 当前没有解决这个问题的新版本,你可以联系该项目的维护者或作者
- sdeint_adjoint for f_and_g_prod type SDE, how to set parameter?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torchsde.