Randomized opt networks with PyTorch
Project description
pyperch
Getting Started
About
Pyperch is a neural network weight optimization package developed to support students taking Georgia Tech’s graduate machine learning course CS7641. Three random optimization algorithms - randomized hill climbing, simulated annealing, and a genetic algorithm - can be used as drop-in replacements for traditional gradient-based optimizers using PyTorch.
Install
pip install pyperch
Examples
PyTorch-Only (No Skorch Required)
rhc_adam_hybrid.ipynb
New notebook demonstrating PyTorch training using pyperch's RHC optimizer and Adam together on different layers - no Skorch dependency required. Ideal for hybrid workflows and experimentation.
Classic Skorch Examples
-
backprop_network.ipynb
Standard neural network training using backpropagation with Skorch. -
rhc_opt_network.ipynb
Neural network trained using Randomized Hill Climbing (RHC) via Skorch. -
sa_opt_network.ipynb
Neural network trained using Simulated Annealing (SA) via Skorch. -
ga_opt_network.ipynb
Neural network trained using a Genetic Algorithm (GA) via Skorch. -
regression_examples.ipynb
Regression tasks using randomized optimization.
Contributing
Pull requests are welcome.
- Fork pyperch.
- Create a branch (
git checkout -b branch_name) - Commit changes (
git commit -m "Comments") - Push to branch (
git push origin branch_name) - 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
File details
Details for the file pyperch-0.1.5.tar.gz.
File metadata
- Download URL: pyperch-0.1.5.tar.gz
- Upload date:
- Size: 776.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b44b04ecd6492a78dd2c5561043eaffcc05657eec9a7a151a566257206478c7
|
|
| MD5 |
870c8c2bd193da9e33bde31ec9ee1f28
|
|
| BLAKE2b-256 |
d160c6a4baa226493c666c62a46bc45c5c297a2efd194879d5fed5418f6797a3
|