Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
|pypi| |py_versions|
.. |pypi| image:: https://img.shields.io/pypi/v/tjax :alt: PyPI - Version
.. |py_versions| image:: https://img.shields.io/pypi/pyversions/tjax :alt: PyPI - Python Version
.. role:: bash(code) :language: bash
.. role:: python(code) :language: python
This repository implements a variety of tools for the differential programming library
JAX <https://github.com/google/jax>
_.
Tjax's major components are:
A dataclass <https://github.com/NeilGirdhar/tjax/blob/master/tjax/_src/dataclasses>
_ decorator
:python:dataclass
that facilitates defining structured JAX objects (so-called "pytrees"), which
benefits from:
chex.dataclass
), andA shim <https://github.com/NeilGirdhar/tjax/blob/master/tjax/_src/gradient>
_ for the gradient
transformation library optax <https://github.com/deepmind/optax>
_ that supports:
A pretty printer :python:print_generic
for aggregate and vector types, including dataclasses. (See
display <https://github.com/NeilGirdhar/tjax/blob/master/tjax/_src/display>
_.) It features:
Tjax also includes:
Versions of :python:custom_vjp
and :python:custom_jvp
that support being used on methods:
:python:custom_vjp_method
and :python:custom_vjp_method
(See shims <https://github.com/NeilGirdhar/tjax/blob/master/tjax/_src/shims.py>
_.)
Tools for working with cotangents. (See
cotangent_tools <https://github.com/NeilGirdhar/tjax/blob/master/tjax/_src/cotangent_tools.py>
_.)
JAX tree registration for NetworkX <https://networkx.github.io/>
_ graph types. (See
graph <https://github.com/NeilGirdhar/tjax/blob/master/tjax/_src/graph.py>
_.)
Leaky integration :python:leaky_integrate
and Ornstein-Uhlenbeck process iteration
:python:diffused_leaky_integrate
. (See leaky_integral <https://github.com/NeilGirdhar/tjax/blob/master/tjax/_src/leaky_integral.py>
_.)
An improved version of :python:jax.tree_util.Partial
. (See partial <https://github.com/NeilGirdhar/tjax/blob/master/tjax/_src/partial.py>
_.)
A testing function :python:assert_tree_allclose
that automatically produces testing code. And, a related
function :python:tree_allclose
. (See testing <https://github.com/NeilGirdhar/tjax/blob/master/tjax/_src/testing.py>
_.)
Basic tools like :python:divide_where
. (See tools <https://github.com/NeilGirdhar/tjax/blob/master/tjax/_src/tools.py>
_.)
Conventions: PEP8.
How to run tests: :bash:pytest .
How to clean the source:
ruff check .
pyright
mypy
isort .
pylint tjax tests
FAQs
Tools for JAX.
We found that tjax demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.