Machines learning to do machine-learning
Project description
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
pyrkmyou needpython3.9or 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 inpython3-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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2bf3abb7c49c5f79bbef810e67b6a68c685029cbb01108c9d6443cd3ae60025
|
|
| MD5 |
c5c83ded6639f5882234f640111f4b61
|
|
| BLAKE2b-256 |
d6da5b16043da92c97f973fa95e90d5353dd5a779e2c4fc58c2f6904b9b4af7e
|
Provenance
The following attestation bundles were made for pyrkm-0.0.7.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.0.7.tar.gz -
Subject digest:
f2bf3abb7c49c5f79bbef810e67b6a68c685029cbb01108c9d6443cd3ae60025 - Sigstore transparency entry: 171008731
- Sigstore integration time:
-
Permalink:
Kirchhoff-Machines/pyrkm@aa5e577f5a14ca2ae1e9b20438965d79d5fbf286 -
Branch / Tag:
refs/tags/0.0.7 - Owner: https://github.com/Kirchhoff-Machines
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@aa5e577f5a14ca2ae1e9b20438965d79d5fbf286 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d2f09e7a6b568308db134305a683540d43cd366ffc5709eabffd3ee633a79c6
|
|
| MD5 |
82f3f6691f2f0f64e9195f0497e5bad3
|
|
| BLAKE2b-256 |
f4ade6dacd568f06c6d9097857852b27b2c62e42a27d1bd32452f043d6cb03bc
|
Provenance
The following attestation bundles were made for pyrkm-0.0.7-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.0.7-py3-none-any.whl -
Subject digest:
6d2f09e7a6b568308db134305a683540d43cd366ffc5709eabffd3ee633a79c6 - Sigstore transparency entry: 171008733
- Sigstore integration time:
-
Permalink:
Kirchhoff-Machines/pyrkm@aa5e577f5a14ca2ae1e9b20438965d79d5fbf286 -
Branch / Tag:
refs/tags/0.0.7 - Owner: https://github.com/Kirchhoff-Machines
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@aa5e577f5a14ca2ae1e9b20438965d79d5fbf286 -
Trigger Event:
release
-
Statement type: