Skip to main content

Machines learning to do machine-learning

Project description

Python application test Coverage Documentation Status PyPI - Python Version PyPI DOI

pyrkm banner pyrkm banner

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 pyrkm you need python3.9 or 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrkm-0.1.0.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrkm-0.1.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

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

Hashes for pyrkm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9f36aab8e74e181e2683af70ad36a723653d6b66650bf90a2b1cf075921142a2
MD5 ff484dc5e16c3416fc1abe4f0880c09e
BLAKE2b-256 0efc4dc7ecb90094cd3a4a217f34e72e0ba50f5e41b7e3886fb55bf766575f2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrkm-0.1.0.tar.gz:

Publisher: publish.yaml on Kirchhoff-Machines/pyrkm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pyrkm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 506855c2c5451b20b12504ceafc5318d892ef0416fb84d5a62ccc0174cf9aca3
MD5 0f94425dd99c5d022cf42104e5d45cbf
BLAKE2b-256 6dcd1c9269397f0cbb272dfa9233bc260595fa10138bb052b6a99054423e10c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrkm-0.1.0-py3-none-any.whl:

Publisher: publish.yaml on Kirchhoff-Machines/pyrkm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page