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-16, i.e. 32 to 65,536 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-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.3.tar.gz (16.0 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.3-cp313-cp313-win_amd64.whl (488.0 kB view details)

Uploaded CPython 3.13Windows x86-64

hypercube_rc-0.2.3-cp313-cp313-manylinux_2_28_x86_64.whl (673.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.3-cp313-cp313-macosx_13_0_x86_64.whl (619.9 kB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

hypercube_rc-0.2.3-cp313-cp313-macosx_13_0_arm64.whl (520.0 kB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

hypercube_rc-0.2.3-cp312-cp312-win_amd64.whl (487.9 kB view details)

Uploaded CPython 3.12Windows x86-64

hypercube_rc-0.2.3-cp312-cp312-manylinux_2_28_x86_64.whl (672.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.3-cp312-cp312-macosx_13_0_x86_64.whl (619.8 kB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

hypercube_rc-0.2.3-cp312-cp312-macosx_13_0_arm64.whl (519.8 kB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

hypercube_rc-0.2.3-cp311-cp311-win_amd64.whl (484.9 kB view details)

Uploaded CPython 3.11Windows x86-64

hypercube_rc-0.2.3-cp311-cp311-manylinux_2_28_x86_64.whl (674.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.3-cp311-cp311-macosx_13_0_x86_64.whl (607.5 kB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

hypercube_rc-0.2.3-cp311-cp311-macosx_13_0_arm64.whl (517.7 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

hypercube_rc-0.2.3-cp310-cp310-win_amd64.whl (484.1 kB view details)

Uploaded CPython 3.10Windows x86-64

hypercube_rc-0.2.3-cp310-cp310-manylinux_2_28_x86_64.whl (674.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

hypercube_rc-0.2.3-cp310-cp310-macosx_13_0_x86_64.whl (606.2 kB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

hypercube_rc-0.2.3-cp310-cp310-macosx_13_0_arm64.whl (516.6 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: hypercube_rc-0.2.3.tar.gz
  • Upload date:
  • Size: 16.0 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.3.tar.gz
Algorithm Hash digest
SHA256 eaa3902d3c7e000bc063962a2490ee784ac865eb05be36049eec8ee868a690be
MD5 d2f259641f4effa2f241bbadbba860f7
BLAKE2b-256 21557f2db9b7c7879bc6e093d8436ccda0e36beedc4fc3df75fb358fab39c7e6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1465b08fe9f7cf2614053fbf2b9dbbbf41e7c31d3148a579f8681f611a51f1f2
MD5 4289094ff17d04dac440dc4b9e4ac306
BLAKE2b-256 721ef25b0983b39d04b0f4ac6e61ec7f6ae6b1a3479f2db9a565f65344cdfd4a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 73c227ff8bfda836646ddf87722e95bc2b1052ebeacfad657bc921d820b0ab01
MD5 445396f21fe999481844daf6bccecd4d
BLAKE2b-256 c7e1b211792f43f491cd752a1dcc308b17def1c576aec74fbff7116ac9391aa3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 eb4ecb66b5e4a7feff7a8d5eb3d7f780c2f55de168106375447471624940366b
MD5 136bdd6fa616a418e5704699c0b260d2
BLAKE2b-256 fcac792867878a9f609067f0231a4a5a476c729d1887fc694fb686208d5c8f92

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bdb17f2d3420032aacc8598276f1906401a37ef8f78dd1c3d0a2f508e9a580c0
MD5 2e06d80f896ac5cff1f1d1ded5d2d4cf
BLAKE2b-256 d67fac5efcda5bd29d4fa7971216db491daaa7ef3b020f883556e1efa9b8e4cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 22933d72e7a230d14d944d1604d10bef5454102c295fcfb8b9c877ec7696f96f
MD5 bd90112b11e8c0648a1e67bcddb7600d
BLAKE2b-256 8e4a1969812bc9ab16df1c4c5990f4b7f8a59f6e502bd91a2d9527ad551dc5e6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 50f395cef3e411252e46fbcb00c60920f01816afa32f55b1dcf208e9df5fee43
MD5 4057d93b887aa8b16082ac78909bbdcc
BLAKE2b-256 77cfd9a3dfdcd7d09db6565d42499fb45e2afac0caf33656ac073da75202a61f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8545dfdb7db59874c504c2a7b1cb95d8d2d84d5fc6d209598a7a0c63dc78d26b
MD5 697639ac8c011672e3e7cbff34bbfcb8
BLAKE2b-256 f7bbd37be28c6ee5a33861107261993545a92de527bf91d70dac9ac044cb66a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5e777cc96bd3ad1f3b8557b55883fde1cfbe4a6d43882d0c46005d4ee0a5f78e
MD5 ffc67346228a2950bf02f192af217a6b
BLAKE2b-256 6e57b562e9e0edb200db910019fd252d43c593904de64be5ee0122270766e1cf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3678ea9a0692b6ee4cb679cbfff0fa91c8ce2b495a7ec64958c024a0bfdd0e58
MD5 e66b5bbd9ec7239318d7f0bd89d00042
BLAKE2b-256 dc371611d7ee3e1a0b4812336ac0aad657a83f22c396feb42f2d84b01fa193aa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ebccb101501ac4f4cf34e244120a031c2898c12a093cb5911f43a2acbf683dd4
MD5 d2880277883273e610c135f5b906fa7f
BLAKE2b-256 3f1ed7f3587ed55ae22e16df75d4a702eddae2f2e2489a03cb7d4f17d2b0e9d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 8950be02a814f0623b2e4bf05b2b7638026d812aa89c11e8a9898b00fcc335cb
MD5 6c823771ef450c54513ce24b28e2911d
BLAKE2b-256 7e8041824db21820b526519ccbbae8272a4c8a604ff673c8dd3ad2124cd2c461

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2e25940a3b102e2744fa5c97af2df773e4ec94c617282db94f5a5a75adb6705a
MD5 b7b3745ce09d8ac7a90e013e21bd4525
BLAKE2b-256 9090090de80667511bd1657b6d3f67fd38746c80123835fadfc73820afe44046

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 63afec1398d92aa3d1d958b2d894f43c46762cc6c32ac9557a3d93c48cb4fb0b
MD5 203bf45c6cf60196f14075549c839a72
BLAKE2b-256 f6146d90085910ad31647dacd62fe9e1297dec8f5a28b37b26fc2003515323de

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2de4bf026180b425c8bc9c79565ca5848b37e9959d0ce23f7b82ea326cd30eef
MD5 623559cf4dc4e18e5eef619e4363499e
BLAKE2b-256 88f68cc9c9cf24c6b6d888b63fa16ab1b4dc2e6e4212ea750791441741acb024

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 98f8cb9f1ae70abefa30613155b4d6b7c7a79afc4030a2aaeb1a5af96644015c
MD5 5e3b2d0c2e987ec3413571bf192748d8
BLAKE2b-256 b1470ba823a504df82a542d48fb703429b762ee4d8ce9973569bd3f27f7d419d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for hypercube_rc-0.2.3-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ae4490bcc7de3ab744cd6f73b75b42d5df082ecda06a9aa6ad3128f439d23cf8
MD5 d3d76d08ee138d6e1710acbb1cca5605
BLAKE2b-256 0112a5549c1db67220b5f288da223f1735d10499d38c1c8e9aa5acfb63aa0a55

See more details on using hashes here.

Provenance

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