pyperch
A lightweight library for neural network weight optimization using randomized search algorithms with PyTorch. PyPerch includes optional hyperparameter search utilities layered on top of the standalone optimizers.
Installation
PyPerch supports Python 3.10 through 3.13.
Install from PyPI:
pip install pyperch
or with Poetry:
poetry add pyperch
Optuna search is an optional extra. Install it from PyPI with:
pip install "pyperch[optuna]"
or with Poetry:
poetry add "pyperch[optuna]"
Development Setup
See CONTRIBUTING.md for source-checkout setup and validation.
Examples
The fastest way to get started with PyPerch is to explore the examples.
See:
Documentation
See:
Agent-assisted Experiments
PyPerch's agentic harness supports agent-assisted experiments. One way to try this is with an orchestrator-worker architecture like FirstMate, which supports multiple coding-agent harnesses, including Pi.
For example, ask the orchestrator to make a small optimizer change, validate it, and then run parallel experiments:
Follow
AGENTS.mdand load the relevant skill(s). For local experimentation only, add an optional GA uniform-crossover parameter while preserving the existing0.5default, backward compatibility, and native PyTorch usage. Once tests pass, freeze the implementation. Using the Iris dataset and a small PyTorch MLP, run two independent Optuna experiments with the same search space and different random seeds. Report the best trial, best parameters, objective value, number of trials, and limitations for each run, then compare the results. Do not claim the change improves GA unless the evidence supports it. Do not push or open a PR.
Contributing
Pull requests are welcome. See CONTRIBUTING.md for the project philosophy, development checks, and review expectations.
Metadata
Release files for pyperch 0.3.2
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 |
|---|---|---|---|---|
| pyperch-0.3.2.tar.gz | 8.8 kB | Without provenance | Details for pyperch-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyperch-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for pyperch-0.3.2-py3-none-any.whl |
Total release size: 21.3 kB
Release files / pyperch-0.3.2.tar.gz
| Download URL | pyperch-0.3.2.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
050150f8ec2077962aa47a5acc5c2bbc7196b790b5266ffc193df8405e975b4d
|
|
BLAKE2b-256 checksum How to use checksums |
b2781e79c59c72a85281ccd0ba533402778a2903d15d6f7e6175e6b53b7f015b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.9 Darwin/25.6.0
|
Release files / pyperch-0.3.2-py3-none-any.whl
| Download URL | pyperch-0.3.2-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d01ef1d858abe104355c33a89567338d5660aea3e7e35acb36be2a30dcae7fe5
|
|
BLAKE2b-256 checksum How to use checksums |
10b5699d143c37f7e551fcb96c5bab64b0a03dce97fd63be26f2f913f1fa43e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.9 Darwin/25.6.0
|
Security for pyperch 0.3.2
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.