brownian-diffuser
Forward integrate torch neural networks
Similar to torchsde.sdeint or torchdiffeq.odeint but for vanilla neural networks as implemented by TorchNets
Example usage
BrownianDiffuser
from brownian_diffuser import BrownianDiffuser
diffuser = BrownianDiffuser()
from torch_nets import TorchNet
import torch
net = TorchNet(50, 50, [400, 400])
X0 = torch.randn([200, 50])
t = torch.Tensor([2, 4, 6])
X_pred = diffuser(net, X0, t, n_steps=40, stdev=0.5, max_steps=None, return_all=False)
X_pred.shape
torch.Size([3, 200, 50])
BrownianMotion
from brownian_diffuser import BrownianMotion
X_state = torch.randn([400, 50])
BM = BrownianMotion(X_state, stdev=0.5, n_steps=40)
Z = BM()
Z.shape
torch.Size([40, 400, 50])
Installation
pip install brownian-diffuser
Metadata
Release files for brownian-diffuser 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| brownian-diffuser-0.0.2.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brownian_diffuser-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / brownian-diffuser-0.0.2.tar.gz
| Download URL | brownian-diffuser-0.0.2.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f44716df58a6f5f1d2b26d99e17519b6fabae9e7d5b8b69ba719c100b22ac8f5
|
|
BLAKE2b-256 checksum How to use checksums |
59f59295a8c597293293047861223fb748da2b69c5f0b7d9268b497e3dbf04ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / brownian_diffuser-0.0.2-py3-none-any.whl
| Download URL | brownian_diffuser-0.0.2-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db0b4b662a881ad67ff97b965daa92f3d6799064085679e10c126b97d8181de2
|
|
BLAKE2b-256 checksum How to use checksums |
872defa47d6d663f718f002f730fbf5df12460ba453af1058b2f07a0bf705ef8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|