Machines learning to do machine-learning
Project description
What is a Restricted Kirchhoff Machine?
You may be familiar with Restricted Boltzmann Machines (RBMs) [1]-[2], which are a type of generative neural network that can learn a probability distribution over its input data. The Restricted Kirchhoff Machine (RKM) is a realization of a RBM using resistor networks, and Kirchhoff's laws of electrical circuits. In this repository, we provide a Python package to virtually simulate the training and evaluation of RKMs.
For more information about the capabilities of the RKM, see the original paper by Link to arXiv paper.
Repository Contents
In this repository you will find the following:
src/pyrkm/: The main package code. You can use this code to train and evaluate RKMs. For more information, see the documentation. For a quick start, see the Usage section below.energy_consumption: A series of scripts to evaluate the energy consumption of the RKM and compare it to the estimated cost of a RBM. They are used to generate the results in the paper.
Getting Started
To get started with the project, follow these steps:
-
Prerequisites: In order to correctly install
pyrkmyou needpython3.9or higher. If you don't have it installed, you can download it from the official website. -
Install the package:
python -m pip install pyrkm
-
Or: Clone the repository:
git clone https://github.com/Kirchhoff-Machines/pyrkm.git cd pyrkm git submodule init git submodule update pip install .
Usage
To learn how to use the package, follow the official documentation and in particular this tutorial.
Contribution Guidelines
We welcome contributions to improve and expand the capabilities of this project. If you have ideas, bug fixes, or enhancements, please submit a pull request. Check out our Contributing Guidelines to get started with development.
Generative-AI Disclaimer
Parts of the code have been generated and/or refined using GitHub Copilot. All AI-output has been verified for correctness, accuracy and completeness, revised where needed, and approved by the author(s).
How to cite
Please consider citing this software that is published in Zenodo under the DOI 10.5281/zenodo.14865380.
License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
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 pyrkm-0.1.0.tar.gz.
File metadata
- Download URL: pyrkm-0.1.0.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f36aab8e74e181e2683af70ad36a723653d6b66650bf90a2b1cf075921142a2
|
|
| MD5 |
ff484dc5e16c3416fc1abe4f0880c09e
|
|
| BLAKE2b-256 |
0efc4dc7ecb90094cd3a4a217f34e72e0ba50f5e41b7e3886fb55bf766575f2b
|
Provenance
The following attestation bundles were made for pyrkm-0.1.0.tar.gz:
Publisher:
publish.yaml on Kirchhoff-Machines/pyrkm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyrkm-0.1.0.tar.gz -
Subject digest:
9f36aab8e74e181e2683af70ad36a723653d6b66650bf90a2b1cf075921142a2 - Sigstore transparency entry: 550196681
- Sigstore integration time:
-
Permalink:
Kirchhoff-Machines/pyrkm@229629a8015f5cc4caba2ac2924f888962be4ec0 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/Kirchhoff-Machines
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@229629a8015f5cc4caba2ac2924f888962be4ec0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyrkm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyrkm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
506855c2c5451b20b12504ceafc5318d892ef0416fb84d5a62ccc0174cf9aca3
|
|
| MD5 |
0f94425dd99c5d022cf42104e5d45cbf
|
|
| BLAKE2b-256 |
6dcd1c9269397f0cbb272dfa9233bc260595fa10138bb052b6a99054423e10c3
|
Provenance
The following attestation bundles were made for pyrkm-0.1.0-py3-none-any.whl:
Publisher:
publish.yaml on Kirchhoff-Machines/pyrkm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyrkm-0.1.0-py3-none-any.whl -
Subject digest:
506855c2c5451b20b12504ceafc5318d892ef0416fb84d5a62ccc0174cf9aca3 - Sigstore transparency entry: 550196691
- Sigstore integration time:
-
Permalink:
Kirchhoff-Machines/pyrkm@229629a8015f5cc4caba2ac2924f888962be4ec0 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/Kirchhoff-Machines
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@229629a8015f5cc4caba2ac2924f888962be4ec0 -
Trigger Event:
release
-
Statement type: