torchsde
torchtyping
torchsde | torchtyping | |
---|---|---|
5 | 7 | |
1,473 | 1,333 | |
2.0% | - | |
4.8 | 3.2 | |
7 months ago | 11 months ago | |
Python | Python | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
torchsde
-
Google Research • Differentiable SDE solvers with GPU support and efficient sensitivity analysis in PyTorch. For stochastic differential equations in your deep learning models
Github: https://github.com/google-research/torchsde
-
[D] Ideal deep learning library
So not just that paper, but also our follow-up papers on the same topic: Neural SDEs as Infinite-Dimensional GANs Efficient and Accurate Gradients for Neural SDEs are in fact implemented in PyTorch, specifically the torchsde library. (Disclaimer: of which I am a developer.)
-
[D] Is there any way for GAN to generate arbitrary length of time series signal?
Code: SDE-GAN example in torchsde.
-
[P] Final Year Computer Science Project Suggestions
If you're interested in finance then I'd recommend Neural SDEs: https://arxiv.org/abs/2102.03657 https://arxiv.org/abs/2105.13493 https://github.com/google-research/torchsde/blob/master/examples/sde_gan.py
-
Simple & Fast GAN Training [D]
This may or may not fit what you're after.
torchtyping
-
[D] Have their been any attempts to create a programming language specifically for machine learning?
Not really an answer to your question, but there are Python packages that try to solve the problem of tensor shapes that you mentioned, e.g. https://github.com/patrick-kidger/torchtyping or https://github.com/deepmind/tensor_annotations
-
What's New in Python 3.11?
I disagree. I've had a serious attempt at array typing using variadic generics and I'm not impressed. Python's type system has numerous issues... and now they just apply to any "ArrayWithNDimensions" type as well as any "ArrayWith2Dimenensions" type.
Variadic protocols don't exist; many operations like stacking are inexpressible; the synatx is awful and verbose; etc. etc.
I've written more about this here as part of my TorchTyping project: [0]
[0] https://github.com/patrick-kidger/torchtyping/issues/37#issu...
-
Can anyone point out the mistakes in my input layer or dimension?
also https://github.com/patrick-kidger/torchtyping
-
[D] Anyone using named tensors or a tensor annotation lib productively?
FWIW I'm the author of torchtyping so happy to answer any questions about that. :) I think people are using it!
-
[D] Ideal deep learning library
The one thing I really *really* wish got more attention was named tensors and the tensor type system. Tensor misalignment errors are a constant source of silently-failing bugs. While 3rd party libraries have attempted to fill this gap, it really needs better native support. In particular it seems like bad form to me for programmers to have to remember the specific alignment and broadcasting rules, and then have to apply them to an often poorly documented order of tensor indices. I'd really like to see something like tsalib's warp operator made part of the main library and generalized to arbitrary function application, like a named-tensor version of fold. But preferably using notation closer to that of torchtyping.
-
[P] torchtyping -- documentation + runtime type checking of tensor shapes (and dtypes, ...)
Yes it does work with numerical literals! It support using integers to specify an absolute size, strings to specify names for dimensions that should all be consistently sized (and optionally also checks named tensors), "..." to indicate batch dimensions, and so on. See the full list here.
What are some alternatives?
torchdyn - A PyTorch library entirely dedicated to neural differential equations, implicit models and related numerical methods
jaxtyping - Type annotations and runtime checking for shape and dtype of JAX/NumPy/PyTorch/etc. arrays. https://docs.kidger.site/jaxtyping/
pysindy - A package for the sparse identification of nonlinear dynamical systems from data
equinox - Elegant easy-to-use neural networks + scientific computing in JAX. https://docs.kidger.site/equinox/
tabnet - PyTorch implementation of TabNet paper : https://arxiv.org/pdf/1908.07442.pdf
tsalib - Tensor Shape Annotation Library (numpy, tensorflow, pytorch, ...)
SSD-pytorch - SSD: Single Shot MultiBox Detector pytorch implementation focusing on simplicity
mypy - Optional static typing for Python
NeuralCDE - Code for "Neural Controlled Differential Equations for Irregular Time Series" (Neurips 2020 Spotlight)
functorch - functorch is JAX-like composable function transforms for PyTorch.
tensor_annotations - Annotating tensor shapes using Python types