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.

For more information about the capabilities of the RKM, see the original paper by Link to paper XXXX.

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. They are used to generate the results in the paper XXX.

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.0.8.tar.gz (30.1 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.0.8-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file pyrkm-0.0.8.tar.gz.

File metadata

  • Download URL: pyrkm-0.0.8.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyrkm-0.0.8.tar.gz
Algorithm Hash digest
SHA256 9f80d31515a817af72463485222dccd752602bd66079a2741c78a4d114a83d30
MD5 fca6999d659965145dfff9e6a1812eab
BLAKE2b-256 a1ac53e1c9064ae94db317f9cacde7f60895ad3c69bdee85217bd880c506aba7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrkm-0.0.8.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.0.8-py3-none-any.whl.

File metadata

  • Download URL: pyrkm-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pyrkm-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3b54f9c8f90629dbca1ed3a65ee1e7d097d53acb0df8f53a3159fe708f06faa1
MD5 9a271cae2e2004b52a12fb9352b642d7
BLAKE2b-256 3d0c25ff7ee28fcd4c295b43fb41251c693e0cd3840377745ec9a222b6012079

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrkm-0.0.8-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