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

pyrkm:

Emergent unsupervised learning with adaptive resistor networks: The Restricted Kirchhoff Machine

TODO:

  • Create a proper README
  • Make a logo
  • Build the documentation
  • fix CONTRIBUTING.md
  • fix CODE_OF_CONDUCT.md
  • set up pypi publishing
  • track on Zenodo
  • improve example.ipynb

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.

Overview

Repository Contents

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. You will also need the header files that are required to compile Python extensions and are contained in python3-dev. On Ubuntu, you can install them with:

    apt-get install python3-dev
    
  • Install the package:

    python -m pip install pyrkm
    
  • Or: Clone the repository:

    git clone https://github.com/MALES-project/SpeckleCn2Profiler.git
    cd SpeckleCn2Profiler
    git submodule init
    git submodule update
    pip install .
    

Usage

To use the package, you run the commands such as:

python <mycode.py> <path_to_config.yml>

where <mycode.py> is the name of the script that trains/uses the pyrkm model and <path_to_config.yml> is the path to the configuration file.

Here you can find a typical example run and an explanation of all the main configuration parameter. In the example submodule you can find multiple examples and multiple configuration to take inspiration from.

What can we predict?

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.11447920.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrkm-0.0.7.tar.gz
  • Upload date:
  • Size: 29.9 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.7.tar.gz
Algorithm Hash digest
SHA256 f2bf3abb7c49c5f79bbef810e67b6a68c685029cbb01108c9d6443cd3ae60025
MD5 c5c83ded6639f5882234f640111f4b61
BLAKE2b-256 d6da5b16043da92c97f973fa95e90d5353dd5a779e2c4fc58c2f6904b9b4af7e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pyrkm-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 31.3 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6d2f09e7a6b568308db134305a683540d43cd366ffc5709eabffd3ee633a79c6
MD5 82f3f6691f2f0f64e9195f0497e5bad3
BLAKE2b-256 f4ade6dacd568f06c6d9097857852b27b2c62e42a27d1bd32452f043d6cb03bc

See more details on using hashes here.

Provenance

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