Skip to main content

Python bindings for HypercubeRC: reservoir computing on Boolean hypercube graphs

Project description

HypercubeRC

Build wheels

Python bindings for a reservoir computer whose neurons live on a Boolean hypercube — a DIM-dimensional graph where each vertex is addressed by a DIM-bit binary index, with all connectivity defined by XOR operations on those indices. Neuron states are continuous real values (driven through tanh nonlinearity); only the addressing scheme is binary. No adjacency list is stored. N = 2^DIM neurons (DIM 5-16, i.e. 32 to 65,536 neurons). 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-16 -- 32 to 65,536 neurons, scale-invariant defaults
  • HCNN readout -- learned convolutional readout on raw reservoir state
  • Multi-input -- multiple input channels via stride-interleaved driving
  • Streaming mode -- online training for real-time applications
  • Model persistence -- pickle, save/load to disk

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.4.tar.gz (16.2 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.4-cp313-cp313-win_amd64.whl (488.5 kB view details)

Uploaded CPython 3.13Windows x86-64

hypercube_rc-0.2.4-cp313-cp313-manylinux_2_28_x86_64.whl (673.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.4-cp313-cp313-macosx_13_0_x86_64.whl (620.7 kB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

hypercube_rc-0.2.4-cp313-cp313-macosx_13_0_arm64.whl (520.6 kB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

hypercube_rc-0.2.4-cp312-cp312-win_amd64.whl (488.5 kB view details)

Uploaded CPython 3.12Windows x86-64

hypercube_rc-0.2.4-cp312-cp312-manylinux_2_28_x86_64.whl (672.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.4-cp312-cp312-macosx_13_0_x86_64.whl (620.6 kB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

hypercube_rc-0.2.4-cp312-cp312-macosx_13_0_arm64.whl (520.5 kB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

hypercube_rc-0.2.4-cp311-cp311-win_amd64.whl (482.4 kB view details)

Uploaded CPython 3.11Windows x86-64

hypercube_rc-0.2.4-cp311-cp311-manylinux_2_28_x86_64.whl (678.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.4-cp311-cp311-macosx_13_0_x86_64.whl (607.9 kB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

hypercube_rc-0.2.4-cp311-cp311-macosx_13_0_arm64.whl (518.2 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

hypercube_rc-0.2.4-cp310-cp310-win_amd64.whl (481.6 kB view details)

Uploaded CPython 3.10Windows x86-64

hypercube_rc-0.2.4-cp310-cp310-manylinux_2_28_x86_64.whl (676.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.4-cp310-cp310-macosx_13_0_x86_64.whl (606.6 kB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

hypercube_rc-0.2.4-cp310-cp310-macosx_13_0_arm64.whl (517.0 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for hypercube_rc-0.2.4.tar.gz
Algorithm Hash digest
SHA256 dcf8a92781bfd9b302e188bd27bb551b37e3d610d252c3136045e728300da8cf
MD5 3433ed7fd0149d2e9c19dfabe3410073
BLAKE2b-256 26bb52f8bd1cf34f3b02034dcd19101cf4c5459f0f46cfeab2b6d0ba433cbacd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7f99c6e1b4f6a013abe789d4d5b98cd81ca88fa126080be9552435855a4da006
MD5 cf5d6f89d5e956c13a2a11593a750934
BLAKE2b-256 17940df794f293be346f38bac7eef014296beb1a7069241f176ffd3fe7893b7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 18a6b9629877d86793a71589a9cdaab24c0f6aedac8f0cde03a9555e23c43765
MD5 b04fc0011dcf57ca78208dcccd98b2f5
BLAKE2b-256 5641df8ad8b8fdbeb996f58ec992d658fcaba45a70a40a5d84e5fefa900c717c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2b143cd05e17bfb1d1d687152705fd2d875b9df02bc737c5a0cc7f86ba108cea
MD5 e78e74da55a1f1cb26a6e0d8300a2453
BLAKE2b-256 b139e1293287b3396c3c8c30756cbcff4313be0c22acb5cbc01bab5f77234108

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e06f21bb7db3c6b36e559fb63c3c65775f58a0a598c9f8632b9e6af939e41d95
MD5 28c80a86a4fd28b0875f46b44f32c243
BLAKE2b-256 c89017b8056c00c5a50ce26f2c4e37d9eb7e8fb878b67efc3fbb26972e0c0ace

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 00e9e4b3d828d549333fb0ec0663063c615f335f883c9771fae5c32b97788957
MD5 071dd77f1753596be81d94dd31b5c69f
BLAKE2b-256 56ac1d920a612e9e421a693be4e5d1e4cb5d51bba91f0c53bffc6a2cb3ec721e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee4cc6c62562e264023628a43936f1c7e470f826ee63513998e965564f93cbcd
MD5 77531c242ad41b082605eeca3aae2ef1
BLAKE2b-256 f52a4b4e27b84dcfc2552b36d546c4a60b59684986f6c53554a218a4713a8b10

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 60de0d2e97c0b062eecf52174071dd4b05208e0d5d18c73b770aa2dd48788793
MD5 8788aef2f6262951c95d57947324c701
BLAKE2b-256 5d95f0fa15b3ac9d5cd09d3a805e6af6db96073faf02b085b7fbff48381c1bbd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 797ac64ffa473fcd9f9b08fb5c3cb91e588bca823e21e009e0cbd077099021df
MD5 011d6c8f4bdfcb09bc642bad9cc9315e
BLAKE2b-256 c6798aee9c74c6f858a5524964ac59939003822defdb904f52759dbaff80e533

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7141e790275c1c5c75c86fa8f69c672dbfe5b02e943cd257ea687ed84bef02ea
MD5 0da77232c76d6cf3b092c7823c7b61df
BLAKE2b-256 20f925f6f735308ba6e5da62c242abc3c9e7fc637e8ceb875dee4a39c071da23

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 398b549ce7a8dd35e5a27e11fb7de75e31bb1269962774fd21b008f0e9f0a3fd
MD5 b49f68a9c62db6956734b3fcca321659
BLAKE2b-256 b1d4a872c498f7cd18839870c973279290345d99bd1b720d6e16f015f75498c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 61c0d7b970d69fea1aa639719ec3d95fde7009ebba0f41ab004612bf0efd960e
MD5 003db3b654eb85857787919af1401fd1
BLAKE2b-256 e53011cee431954fd6051811b7410c4e90dd4f3f24e356e7e6cdff8d62d08c29

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f85dc0275bd594736cd0df673c0fb016300c7f8f35df6c2f5782102d874c686f
MD5 621be7c30288db023167da8466af4fd6
BLAKE2b-256 d7e673380121739c6204cdcf6714085169913f50a82862b7f3aa5441e33e3490

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ba9013c46858459147f807bbb5a7b2f14cfbe7a0785ac1e9a5ed0ea44706deae
MD5 ef7ff91d328cb2d09603f3bc2eb0c4be
BLAKE2b-256 93a198e86cf4e7e1f2d88250310be4a0b7da52882c27706a58bb64962aa7339f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 823ec1c889c6067fcbd4933e9216991187b8be69992ff3ab1283c43ced4e02b6
MD5 0a0842b8097d8b58f03de9fd76f3db99
BLAKE2b-256 9c9d73931a4c839604dd0f4a4a06d4ba1e558604dc479d21554421dc23bdc387

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 981ab88cedd3ec4e2c890b84474dfece5f124d095b31f39615b932c33fc894e1
MD5 9d0604c55ee37915b480f8d459c86d99
BLAKE2b-256 f6da70485cc39f41dc764a9c3c3bc518dac1f61621085f27af6fb363d9403956

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.4-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 34c79f09404e64b1ce64f243730fd0b95187895de126bf81b4f9d05f275f8a5d
MD5 5cd1b281a58aa6f79194f09eeed880f1
BLAKE2b-256 7d2462b0393abd97657233661a7930bf6d777b3843bb85d239ef7f0433905d1d

See more details on using hashes here.

Provenance

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