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.1.1.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.1.1-cp313-cp313-win_amd64.whl (188.8 kB view details)

Uploaded CPython 3.13Windows x86-64

hypercube_rc-0.1.1-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.1.1-cp313-cp313-macosx_13_0_x86_64.whl (239.1 kB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

hypercube_rc-0.1.1-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.1.1-cp312-cp312-macosx_13_0_x86_64.whl (239.0 kB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

hypercube_rc-0.1.1-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.1.1-cp311-cp311-macosx_13_0_x86_64.whl (233.7 kB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

hypercube_rc-0.1.1-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.1.1-cp310-cp310-macosx_13_0_x86_64.whl (232.7 kB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

hypercube_rc-0.1.1-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.1.1.tar.gz.

File metadata

  • Download URL: hypercube_rc-0.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 e88c55c7dabb49a71f553963277661fbea692d8a0e43e09fbc0676d4d3874660
MD5 f8da6332d53c1c0628c10941c8248834
BLAKE2b-256 c743842c07f703aa02257828d7efb2adc1feecd559f1af5260a74e47c6123875

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1.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.1.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 238911494cd98739103abc99f977f83272b1185fa486fc16b74803432be59211
MD5 3c619e0720105e4f4aa694afeeadc5fd
BLAKE2b-256 c41d77d17dfd0b167b1cce080ab7302c8d3db01f277122afbd7ca1477de76a4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6bfe6ffd9662d8e2a9e14241541e4cf742aedc9d6ddf790c47ec1dda4a420ee1
MD5 f3e88d5a7b68ab6c6968c5004da2cdb1
BLAKE2b-256 dafbf32ef0da011a5ef3a8e8e2cb07c8df514a73ee09948592bae73d07e3b5a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 23a513de3091de9e51b631fe0fa693b3aa271421298d1618a8efb02650a83750
MD5 2cdf6b4c92d25f053ca6a06fc158f689
BLAKE2b-256 d9c2f2086391d49918159d48df542ef9a8a3276a8c866f5ff91897fe7561f22f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5d2083f0d7543bc14f7dbb7cf217058a9f0b453b461ab6a7f166b16371c1c1a0
MD5 a2a8ce458aa8b7d5e145db3ddb63d76c
BLAKE2b-256 53a5111d6fa69a2c13b9ea75e298df1cc19cba7d9815c042fafac83669d58ca8

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c1f8a237c7fc734988bd8d9562c3ca60d453959ed5ea1f09eeff93dc64466744
MD5 ac363c300b3f218e6ac48a8852d9beec
BLAKE2b-256 e46d1b97a258576d80c07d1e6df65d696fa3fba8d7a6afb6b88751d539f6d856

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f6614a9a0e4c8c35b416bbb251fabd3ab7907c1bc5165e2f4e2609f44408ccb0
MD5 58919d086d72547d9cdb01440cb7e50f
BLAKE2b-256 9c8dea4dfc304f7637c20796a24ebc6872bba93ec77531136ecf0fbf9125bd9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7aad34c17e3eed117c73f5928b1de39de42667742af309e6ff0b244a7a427eaf
MD5 46cccbadfa6ef6818d17da18c16e6a9d
BLAKE2b-256 cdd8d5caa0eb9cc0d83b9723f11e86e095cb9e2aa4d7701d540b4382a68a67fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6a64c469c0b08091e7e27d2ae5263087e97e9090433aafca992dde50b3bcf6a3
MD5 978073f369ffbb5fde4c051df3c50abc
BLAKE2b-256 fc6c0b0aefa7922b307c87ce64169001ec48331533e9e1a26e0d95997fb6fb3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f40abec933059d04cd31277d77fb242c786bdb897abd606c82deaa1f90284d84
MD5 4d86d67353d6e707196d5b56812e3b0b
BLAKE2b-256 21612953562cd51561129b10c03e26f75a6deba2601c32f5d3470d8c37010556

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 68ac5435527e7c43bc5265d37dee1cad29e6e85ba77691ef6ff690fb3889dcd2
MD5 3ab3379adeaf6b3884201689916f9b34
BLAKE2b-256 86d9857bc6b13352f656d285f1ca3085597ff3bb42d4fe2e591801ed6932caa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 3941edbff06e47ae401dc79eb68ec8484871fcc11b9ea9d9dac052affdc97d2e
MD5 216f870be7128441ed562f421c0cdf8a
BLAKE2b-256 a85e0d3a28130360364118cc339fca7c2d0491beec91d13df7e59fb2c88d55c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6f6a09e1c0b7185a306fd9d489e25068e0960b20312c72030327d40ac41625ae
MD5 78a2afba1e038160093b2380e021e489
BLAKE2b-256 10bce78597b8ea11970e40752ccde79f2b9aa199876c626a228ba4e82f1df688

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e864eff43438ab5c142d2e836fde0a6295a682369e326f773fae206e7648bb17
MD5 de4830ee842e210b688a0a5648b10f96
BLAKE2b-256 ac19469fb550c41e6ce75b039cdec467a64f1ceb9b89ece5670c02f6768e829f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 da0e33303b3a93d4a984d615a0d03d2463c8ee584b8422d10da9cc8bd7093b12
MD5 b4fcf6e0624de1f8d9d3fe2d254550bb
BLAKE2b-256 39f8df669d3a372c56b66b8b923cbdfd3108c89f19e77801aaa1d0b9b12c990b

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 57ebaba7c413ea731a5efe2261f8c57af7cf98ad083ab54891679e35107d2ce2
MD5 c52d62dec79daeff4a3ae317b5c5f8fd
BLAKE2b-256 48887aec9813e15b6ec76d33b8c1bfd7de83f65e29e136ac6358006277c6f7e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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.1.1-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_rc-0.1.1-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7c8ccaae00e0df14fcb3319192739c33d26ed58161b6a428e41fe7f74bf773eb
MD5 0f8d2d363940985f176ee28579eb9e0e
BLAKE2b-256 3d25812d73d7abe700f54f4f7425594b2a05c9b6a8f83e5f65383f72b3e4dae9

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_rc-0.1.1-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