Skip to main content

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 dataclasss that 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:

  • An object-oriented wrapper on top of optax. (See gradient.)

  • A pretty printer print_generic for aggregate and vector types, including dataclasses. (See display.)

  • Versions of custom_vjp and custom_jvp that 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_integrate and Ornstein-Uhlenbeck process iteration diffused_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_allclose that automatically produces testing code. And, a related function jax_allclose. (See testing.)

  • Basic tools sum_tensors and is_scalar. (See tools.)

Also, see the documentation.

Contribution guidelines

  • Conventions: PEP8.

  • How to run tests: pytest .

  • How to clean the source:

    • isort tjax

    • pylint tjax

    • mypy tjax

    • flake8 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

tjax-0.11.2.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tjax-0.11.2-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

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

Hashes for tjax-0.11.2.tar.gz
Algorithm Hash digest
SHA256 0f5097fe752bbd1fff4f8eddd10e460ca1387d1d0d5ff7dd4cde40348a43b750
MD5 e2d9972566e070b7fead63f5aaeb282f
BLAKE2b-256 00ecc6a92bda7664cf5efdf2ffcaf074b68e93aa3fbd0b34bf45d853f31bf432

See more details on using hashes here.

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

Hashes for tjax-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd35205451aa983d157c557cf7582cd981d5e2099e75c04b38548172ab8d887d
MD5 b663b248a51714176b2087401d4d8f0f
BLAKE2b-256 24b60dd0d42a84850272ea3ce5efb914357c969e328eb04ee6b61c9fef2f01a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page