Skip to main content

Python bindings for HypercubeRC: reservoir computing on Boolean hypercube graphs

Project description

HypercubeRC

Build wheels

Python bindings for reservoir computing on Boolean hypercube graphs.

The reservoir topology is a Boolean hypercube of dimension DIM, giving N = 2^DIM neurons (DIM 5-12, i.e. 32 to 4096 neurons). All connectivity is defined by XOR operations on vertex indices -- no adjacency list stored. Scale-invariant hyperparameters: the same SR and input_scaling work at every DIM.

Installation

pip install hypercube-rc

Pre-built wheels for Python 3.10-3.13 on Windows (x64), Linux (x86_64, aarch64), and macOS (x86_64, arm64). No compiler required.

Quick Start

import numpy as np
import hypercube_rc as hrc

# One-step-ahead sine prediction
signal = np.sin(np.linspace(0, 20 * np.pi, 2000)).astype(np.float32)
esn = hrc.ESN(dim=7, seed=42)
esn.fit(signal, warmup=200)
print(f"R2 = {esn.r2():.6f}")      # R2 = 0.999999
print(f"NRMSE = {esn.nrmse():.6f}") # NRMSE = 0.000129

Features

  • Simple API -- fit() handles warmup, run, and train in one call
  • DIM 5-12 -- 32 to 4096 neurons, scale-invariant defaults
  • Two readouts -- Ridge regression (closed-form optimal) and Linear SGD (streaming)
  • Multi-input -- multiple input channels via stride-interleaved driving
  • Streaming mode -- incremental weight updates for real-time applications
  • Model persistence -- pickle, save/load to disk
  • Translation layer -- [x | x^2 | x*x'] feature expansion for 2.5x features

Documentation

Full API reference: docs/Python_SDK.md

Project repository: github.com/dliptak001/HypercubeRC

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

hypercube_rc-0.2.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distributions

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

hypercube_rc-0.2.0-cp313-cp313-win_amd64.whl (188.8 kB view details)

Uploaded CPython 3.13Windows x86-64

hypercube_rc-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (262.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.0-cp313-cp313-macosx_13_0_x86_64.whl (239.1 kB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

hypercube_rc-0.2.0-cp313-cp313-macosx_13_0_arm64.whl (208.1 kB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

hypercube_rc-0.2.0-cp312-cp312-win_amd64.whl (188.8 kB view details)

Uploaded CPython 3.12Windows x86-64

hypercube_rc-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (262.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.0-cp312-cp312-macosx_13_0_x86_64.whl (239.0 kB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

hypercube_rc-0.2.0-cp312-cp312-macosx_13_0_arm64.whl (208.1 kB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

hypercube_rc-0.2.0-cp311-cp311-win_amd64.whl (187.8 kB view details)

Uploaded CPython 3.11Windows x86-64

hypercube_rc-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (261.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.0-cp311-cp311-macosx_13_0_x86_64.whl (233.7 kB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

hypercube_rc-0.2.0-cp311-cp311-macosx_13_0_arm64.whl (205.9 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

hypercube_rc-0.2.0-cp310-cp310-win_amd64.whl (186.8 kB view details)

Uploaded CPython 3.10Windows x86-64

hypercube_rc-0.2.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (261.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.0-cp310-cp310-macosx_13_0_x86_64.whl (232.7 kB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

hypercube_rc-0.2.0-cp310-cp310-macosx_13_0_arm64.whl (204.7 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

Details for the file hypercube_rc-0.2.0.tar.gz.

File metadata

  • Download URL: hypercube_rc-0.2.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hypercube_rc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ec10c592cb8ce869eb25ae5da19c8bf41f545464d4c514cb407b2057728b2abb
MD5 ed7560314624c1f064572a0b3a5b4130
BLAKE2b-256 1189c03a3d247861cff02b55c0fd5d1b58fdc67edbae796c8a145bfa4ff90baa

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0.tar.gz:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 849100b55116d0f732b3b3245636c6c36fb04ddbc72f1f952b486fba09b825d4
MD5 fb2c07f81b8d6b3f62ba970e197109df
BLAKE2b-256 4c9a8b1ec4489f358f7528d2517ed920ce02979b664b098918e52b26ea8088a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp313-cp313-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a904d06a7c65e74c8bdfb3b123f9db5212341c75c3d5118b920f1fb374a6bb77
MD5 101d82dd9b29a059f89cc1b2d7544a38
BLAKE2b-256 8d6a89f7d98ae6fc7d745acf8b64df07c520b6b5f8691701d750f872af5d1981

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3d00347ea752ca433145298e6f4bc85d60a591eedb39fa489912b523b1f229f8
MD5 1400552161d43e103ee75ffe533d3177
BLAKE2b-256 6fccbdfc8a74a735181735ba389d173b5701650a226573ef1de6692b89b7d2db

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp313-cp313-macosx_13_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7116b49c75dc466309e0ce27ac0322fbba0b49ac3010712a6cca51cab31ec12e
MD5 406ae63930dd556fb8327bf288b602b1
BLAKE2b-256 332b588c67a5abe8089a7416464a89b20a13656feb419316f6dc7669c5e6c5e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp313-cp313-macosx_13_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3aa33f009193955d0706ae233354c84bed4ff4f659e4f795e6ed854b8fe2663d
MD5 a023809d164a1b2a2ed99c3280f76c1c
BLAKE2b-256 657b671c7fa78b02311fafc6bb36057ee75a90965f22708ee1fff2cd37969041

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp312-cp312-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 57de67b4122ed51b0467f6caf6217c180f24dd19c4cae5c90c27472a08494a09
MD5 9e299ff917fb2329dcd0cd6e64c9bf0d
BLAKE2b-256 d4c88856b783cf9888e944b31d9096392138f7939e01339f25ec662b2d4c37e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b51790ef62c716e94ebd8981864c15deda1b7f55b8e2ab9c8a7e7f6f0d2059f2
MD5 c5aef3eee01d7d9df7287515d24705db
BLAKE2b-256 85af7164d6afac740ee658a22a0fda15af7f861c783429b2525e4b05077a69e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp312-cp312-macosx_13_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 09eb5dfa3e1a3de93fb478945ade684f9495e2a5ef332fa7a0e3926b9e9e9d14
MD5 5170a7b601f026974085b36f958abd10
BLAKE2b-256 bc0692f40f178b1c19c2e928e5643e38820fc8ac392183aae8cf6f28050206db

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp312-cp312-macosx_13_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ab741a5426f40f22e68cd3b3e1f927892c7a7aeb5f4934369ab00504af391611
MD5 d7d5555c99c08baf64869159c6b77ff0
BLAKE2b-256 3bf4e629c7e7e1467664b4a58b955172cc6d6b8fb2dd1fa83aba649a3fcf5540

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp311-cp311-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 50c3a1dfce11235e277cf7e266f7e064935c7094ff9ad43ab1865fd08ab1850a
MD5 410e33d3909b136da452dffd05b4c07c
BLAKE2b-256 a5b7ddbc21e4a522f3e0ae77fb53ff7b6d2438e2a4338652b9f1e9510a362550

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f3d3d6620c0789d998e672e16a0106aafc8036d5eb917d8ae06a26e49abcdbb2
MD5 c0b1c01ce68a1ae700f2b233632f7182
BLAKE2b-256 56d7c27a8f326471966e76d09350357ea2b425dba59e9119886fbf96075da010

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp311-cp311-macosx_13_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 584121b358780e473a3a5ac70aef2345d859394df92456ee80a6d23270c18c3b
MD5 7b5fd9a963e1bea43ae29bf77def964a
BLAKE2b-256 3502e040dec35a9fa71caaeee44d591ad18aa22ad9673462e61d7a6fe721dab9

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp311-cp311-macosx_13_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a9610ab56af6b562ca6d5ef9eeb628c5cdd4c942801f3835d876d8a237937cd1
MD5 31f301ff3d9127eae28d93422a8edf02
BLAKE2b-256 8cf8e7c78b3a5e38f2064a740c65d5fb40bd9d43e4a186392fcbd9e259b2586c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp310-cp310-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9a732e6b965321ea25144782b3d3f18c9755c23753adc3a2780aabb69b465cac
MD5 518028ab46d044c98ab69ed29be8edc5
BLAKE2b-256 806570bc3fc5b90482856ba6885d4f4e27a5acac0ea14792323f841d17e0aec9

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1547ea3fd19835ddb6987656522f2e8454f051680aca96f3d6dbd67718e6d862
MD5 38d5b3338bd11acf960434a6112499a1
BLAKE2b-256 757e730248fb8afe20e984036b20abd2fb0c09d66298500fe2405f7147b10362

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp310-cp310-macosx_13_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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

File details

Details for the file hypercube_rc-0.2.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.2.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5260921fc275f1c86046ddb6ca80801dff77d16a5b0719d67e5b72d6e7d8f629
MD5 8bba1d52d443b07696793a4681f22c30
BLAKE2b-256 6a71fa02b837edf72ba70dc42747eb19f289459efa24ad287d94be18f178be15

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.2.0-cp310-cp310-macosx_13_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeRC

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