PyTorch-native randomized optimization algorithms.
Project description
pyperch
A lightweight library for neural network weight optimization using randomized search algorithms built directly on top of PyTorch. Pyperch is a research and teaching-oriented library for training neural networks using randomized optimization methods (RHC, SA, GA), gradient-based methods, and hybrid combinations.
PyPerch also includes optional hyperparameter search utilities layered on top of the standalone optimizers.
Installation
Install from PyPI:
pip install pyperch
or with Poetry:
poetry add pyperch
Development Setup
Clone the repository:
git clone https://github.com/jlm429/pyperch.git
cd pyperch
Install development dependencies:
poetry install
Examples
The fastest way to get started with PyPerch is to explore the examples.
See:
Documentation
See:
Contributing
Pull requests are welcome.
Setup:
poetry install
Format code:
poetry run ruff format .
Lint code:
poetry run ruff check .
Typical workflow:
- Fork the repository
- Create a feature branch
- Commit changes
- Open a pull request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyperch-0.3.1.tar.gz.
File metadata
- Download URL: pyperch-0.3.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6adf9a2725f4b54f592090243011500aafa50f13f3d4027673b926d2adc518c
|
|
| MD5 |
8a0388a9fb8fd24c3e3f1c790dc4be09
|
|
| BLAKE2b-256 |
3df5f106cdef98a6df55f9626e13cab5e777719bd16ea8d90a284e9a1aae79cc
|
File details
Details for the file pyperch-0.3.1-py3-none-any.whl.
File metadata
- Download URL: pyperch-0.3.1-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7aa3bc18dfed656c172257f6d34e9b5e2aeac36d4ba99476c4ac3f30bf977625
|
|
| MD5 |
b61af63ee6236f2c2c0dba812fd7fc28
|
|
| BLAKE2b-256 |
db11e7d1c345cdffb78a4360ba0143979846805a95bb9d5db97531a26c873508
|