Tools for JAX.
Project description
This repository implements a variety of tools for the differential programming library JAX.
Major components
Tjax’s major components are:
A dataclass decorator
dataclasssthat facilitates defining JAX trees, and has a MyPy plugin. (See dataclass and mypy_plugin.)A fixed point finding library heavily based on fax. Our library (fixed_point):
supports stochastic iterated functions,
uses dataclasses instead of closures to avoid leaking JAX tracers, and
supports higher-order differentiation.
Minor components
Tjax also includes:
A pretty printer
print_genericfor aggregate and vector types, including dataclasses. (See display.)Versions of
custom_vjpandcustom_jvpthat support being used on methods. (See shims.)Tools for working with cotangents. (See cotangent_tools.)
A random number generator class
Generator. (See generator.)JAX tree registration for NetworkX graph types. (See graph.)
Leaky integration
leaky_integrateand Ornstein-Uhlenbeck process iterationdiffused_leaky_integrate. (See leaky_integral.)An improved version of
jax.tree_util.Partial. (See partial.)A Matplotlib trajectory plotter
PlottableTrajectory. (See plottable_trajectory.)A testing function
assert_jax_allclosethat automatically produces testing code. And, a related functionjax_allclose. (See testing.)Basic tools
sum_tensorsandis_scalar. (See tools.)
Also, see the documentation.
Contribution guidelines
Conventions: PEP8.
How to run tests:
pytest .How to clean the source:
isort tjaxpylint tjaxmypy tjaxflake8 tjax
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tjax-0.11.2.tar.gz.
File metadata
- Download URL: tjax-0.11.2.tar.gz
- Upload date:
- Size: 33.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.8.0-53-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f5097fe752bbd1fff4f8eddd10e460ca1387d1d0d5ff7dd4cde40348a43b750
|
|
| MD5 |
e2d9972566e070b7fead63f5aaeb282f
|
|
| BLAKE2b-256 |
00ecc6a92bda7664cf5efdf2ffcaf074b68e93aa3fbd0b34bf45d853f31bf432
|
File details
Details for the file tjax-0.11.2-py3-none-any.whl.
File metadata
- Download URL: tjax-0.11.2-py3-none-any.whl
- Upload date:
- Size: 43.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.8.0-53-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd35205451aa983d157c557cf7582cd981d5e2099e75c04b38548172ab8d887d
|
|
| MD5 |
b663b248a51714176b2087401d4d8f0f
|
|
| BLAKE2b-256 |
24b60dd0d42a84850272ea3ce5efb914357c969e328eb04ee6b61c9fef2f01a8
|