JaxNNLS
This package can be used for solving non-negative least square (NNLS) problems of the following form:
\begin{align*}
\underset{x}{\text{minimize}} & \quad \frac{1}{2}x^TQx - q^Tx \\
\text{subject to} & \quad x \geq 0
\end{align*}
where Q is positive definite. Or equivalently
\begin{align*}
\underset{x}{{\text{solve}}} & \quad Ax = b \\
\text{subject to} & \quad x \geq 0
\end{align*}
when you set
\begin{align*}
Q&=A^TA \\
q&=A^Tb
\end{align*}
This solver can be combined with JAX's jit and vmap functionality, as well as differentiated with reverse-mode grad.
The NNLS problem is solved with a primal-dual interior point algorithm. This code is a modification on the qpax package, but in the special case of NNLS. Because of the simplifications in this special case the resulting code is significantly faster when Q large in size.
As with the qpax code, derivative smoothing can be applied to the gradients.
Link to the documentation.
Metadata
Release files for jaxnnls 1.0.1
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 | Actions |
|---|---|---|---|---|
| jaxnnls-1.0.1.tar.gz | 8.3 kB | Without provenance | Details for jaxnnls-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jaxnnls-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for jaxnnls-1.0.1-py2.py3-none-any.whl |
Total release size: 18.3 kB
Release files / jaxnnls-1.0.1.tar.gz
| Download URL | jaxnnls-1.0.1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f153813455bb6569acf62db74e913822ea5f299238467c724b2d47da8e547df
|
|
BLAKE2b-256 checksum How to use checksums |
b8baf7c99bed610e4531953b21ac1f851e673efd55591e3800049a8becbb6699
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / jaxnnls-1.0.1-py2.py3-none-any.whl
| Download URL | jaxnnls-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8d874b92f87ef89b0e0a364cbe6fcffd738cc5879d55bbdc2506872ad28e1f41
|
|
BLAKE2b-256 checksum How to use checksums |
1bc9cdb9eb2539d05d96a498d6c3cd9039c7cfbd28da63c0f71513d8b312014c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Security for jaxnnls 1.0.1
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.