1 min readfrom Machine Learning

Parax: Parametric Modeling in JAX + Equinox [P]

Our take

Introducing Parax, an innovative Python project designed to enhance parameter-first modeling in JAX through the Equinox library. Recognizing the need for attaching metadata to parameter objects—such as designating fixed parameters or associating prior probability distributions—Parax simplifies the manipulation of deep parameter hierarchies. With its new `parax.Parameter` and `parax.Module`, both inheriting from `eqx.Module`, users can enjoy a more object-oriented approach to model inspection while adhering to Equinox's immutable principles. Explore the accompanying documentation and examples to see how Parax can elevate your scientific applications.

Hi everyone!

Just wanted to share my Python project Parax - an add-on on top of the Equinox library catering for parameter-first modeling in JAX.

For our scientific applications, we found that we often needed to attach metadata to our parameter objects, such as marking them as fixed or attached a prior probability distribution. Further, we often needed to manipulate these parameters in very deep hierarchies, which sometimes can be unintuitive using eqx.tree_at.

We therefore developed Parax, which providesparax.Parameter and parax.Module (that both inherit from eqx.Module) as well as a few helper utilities. These provide a more object-orientated model inspection and manipulation approach, while still following Equinox's immutable principles.

There is some documentation along with a few examples. Perhaps the package is of use to someone else out there! :)

Cheers,
Gary

submitted by /u/gvcallen
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles