Installation
pip install parametrix
Example
The following example shows how to use Param as a base class for a parameter class that enforces positivity:
import jax.numpy as jnp
from parametrix import Param
class PositiveOnlyParam(Param):
def __init__(self, value):
super().__init__(jnp.log(value))
@property
def value(self):
return jnp.exp(self.raw_value)
The backing values of Params are always stored as jax.Arrays, meaning that they will automatically be picked up as learnable parameters by libraries like Equinox.
Param objects also behave like numeric types, so that they are able to be used within models and any other functions without having to make any changes to the code.
Documentation
API documentation is available at Read the Docs.
Metadata
Release files for parametrix 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| parametrix-0.1.10.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| parametrix-0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / parametrix-0.1.10.tar.gz
| Download URL | parametrix-0.1.10.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c238a754ee6e31f84cae6b4c908682ed30a5a1226c5ced3e5499bef13f88cdf
|
|
BLAKE2b-256 checksum How to use checksums |
b0b814be59e201463c3e240dd29f756e89816e31839f8326886ab09e18915370
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / parametrix-0.1.10-py3-none-any.whl
| Download URL | parametrix-0.1.10-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03af005ac38c8d1c4884db2ab6e4d0c3fdac070628235fdbb5596f96ceaa5daa
|
|
BLAKE2b-256 checksum How to use checksums |
8b0fa63cccdfecc16014bf8ee61b1049bc23fe9da0e703eea5760b027608dfb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for parametrix 0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.