pochep-procmat
Matrix decompositions for the process memory model M t = p.
Rows of M are timestamps and columns are processes. p is the total memory measured at each
timestamp and t is the vector of per-process weights. The package solves this linear system
with QR, SVD, Cholesky normal equations, non-negative least squares (NNLS), and fits NMF
factors M ~ W H. It also provides a synthetic generator of process profiles for tests.
Russian version: README.ru.md. Documentation: docs/en, docs/ru. Demo notebook with strengths and weaknesses: https://github.com/89605502155/pochep-procmat-demo
Install
pip install pochep-procmat
Requires Python 3.11 to 3.14 and NumPy 2.0 or newer. Released on PyPI: https://pypi.org/project/pochep-procmat/
Example
from pochep_procmat import ProcessMemoryModel, make_process_profiles
M, t_true, p = make_process_profiles(n_times=120, n_processes=4, seed=1, noise=0.01)
model = ProcessMemoryModel("svd")
result = model.fit(M, p)
print(result.weights, result.relative_residual, result.rank)
Methods
| Method | Function | Needs | Output |
|---|---|---|---|
qr |
solve_qr |
full column rank | least-squares weights |
svd |
solve_svd |
none, truncation by rcond |
minimum-norm weights |
cholesky |
solve_normal_cholesky |
positive definite M^T M, or ridge > 0 |
weights |
nnls |
solve_nnls |
none | non-negative weights |
nmf |
nmf, then NNLS |
non-negative M and p |
non-negative weights from W H |
Licence
MIT. Authors: Andrey O. Ferubko, Oleg D. Kazakov. How to cite: see CITATION.cff.
Metadata
Release files for pochep-procmat 0.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 |
|---|---|---|---|---|
| pochep_procmat-0.0.1.tar.gz | 12.6 kB | Without provenance | Details for pochep_procmat-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pochep_procmat-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pochep_procmat-0.0.1-py3-none-any.whl |
Total release size: 21.8 kB
Release files / pochep_procmat-0.0.1.tar.gz
| Download URL | pochep_procmat-0.0.1.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ff4576bbae4b46181cd8d279f64d92a2a65e042ab06a580eb10aea0c83da04d
|
|
BLAKE2b-256 checksum How to use checksums |
eecd173651b007bd89f39e99e3ec2536b584e88d07392fe87f69bac3899a63ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pochep_procmat-0.0.1-py3-none-any.whl
| Download URL | pochep_procmat-0.0.1-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fcef8acb202968588fe0e47cd4e66e8f49595703b6b483d57a855908102a663
|
|
BLAKE2b-256 checksum How to use checksums |
cc8c4cd0126464a35a899049000a38d6b4c96944a345894fc4a0b2f5a7f4aa0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pochep-procmat 0.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.