Skip to main content

Python bindings for HypercubeESN: reservoir computing on Boolean hypercube graphs

Project description

HypercubeESN

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). DIM-invariant hyperparameters: the same spectral radius and input_scaling work at every DIM.

Installation

pip install hypercube-esn

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_esn as he

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

Features

  • Simple API -- fit() handles warmup, run, and train in one call
  • DIM 5-16 -- 32 to 65,536 neurons, DIM-invariant defaults
  • HCNN readout -- learned convolutional readout on raw reservoir state
  • Multi-input -- multiple input channels via contiguous-block 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/HypercubeESN

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_esn-0.3.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distributions

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

hypercube_esn-0.3.0-cp313-cp313-win_amd64.whl (186.7 kB view details)

Uploaded CPython 3.13Windows x86-64

hypercube_esn-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl (325.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

hypercube_esn-0.3.0-cp313-cp313-macosx_13_0_x86_64.whl (205.0 kB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

hypercube_esn-0.3.0-cp313-cp313-macosx_13_0_arm64.whl (178.7 kB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

hypercube_esn-0.3.0-cp312-cp312-win_amd64.whl (186.7 kB view details)

Uploaded CPython 3.12Windows x86-64

hypercube_esn-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl (324.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

hypercube_esn-0.3.0-cp312-cp312-macosx_13_0_x86_64.whl (205.0 kB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

hypercube_esn-0.3.0-cp312-cp312-macosx_13_0_arm64.whl (178.6 kB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

hypercube_esn-0.3.0-cp311-cp311-win_amd64.whl (184.0 kB view details)

Uploaded CPython 3.11Windows x86-64

hypercube_esn-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl (324.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

hypercube_esn-0.3.0-cp311-cp311-macosx_13_0_x86_64.whl (202.3 kB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

hypercube_esn-0.3.0-cp311-cp311-macosx_13_0_arm64.whl (177.1 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

hypercube_esn-0.3.0-cp310-cp310-win_amd64.whl (182.6 kB view details)

Uploaded CPython 3.10Windows x86-64

hypercube_esn-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (322.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

hypercube_esn-0.3.0-cp310-cp310-macosx_13_0_x86_64.whl (201.0 kB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

hypercube_esn-0.3.0-cp310-cp310-macosx_13_0_arm64.whl (175.8 kB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

Details for the file hypercube_esn-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for hypercube_esn-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2ab124de04f35eb83e2c4f86937380d652f9a22fcf8472984a9b99a7a17b1f15
MD5 70c55efb3d63ecf4fcf6edc9cb85572e
BLAKE2b-256 004119ba9d889efa77cb420290d1476ba3a0094b011f48615b69cbe508d7c97e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0.tar.gz:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6fa3925040a67ad60bab40cd4d30fa8dee03b4b15b2d3f3a19c0582c86636b99
MD5 340fbfbef7927492fd694f6ed94e427c
BLAKE2b-256 2d8d91e08cfd6de329a291790b7adc39281e37dc815ae85e528ac4de87c1d374

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp313-cp313-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b5e57d610f05d2e97fbc5d37b168b85aaf601f4dc97d8ff894765773cd435c4c
MD5 c13c2725615db7a8ee35151433c48ce2
BLAKE2b-256 9aa36c288714bf24ade25706212008a5cd2f768f07b0a21630358ce307f2e3ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 c278ab45f385f0462e6bb89c2e456b27cc5a24d3b4e370c60308faf01c101fd1
MD5 1ee08cc04c8646d0babfb0649bde3181
BLAKE2b-256 c20fb3535224ea9c369c562fc4194637a1493eaf2ca9097b3f51ddf4b495f3cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp313-cp313-macosx_13_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0b76084e189c1c22cc940aee0ee5a7db3bdddfad2e1bad399cba8d0e8eda1d6a
MD5 8bc29e05419b535000f76a22591cc188
BLAKE2b-256 54ed1d67721afedf6333a077506f1b84ed35a49d31bb06977da2d76bd11eb839

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp313-cp313-macosx_13_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 764bb60839302594769a335736aae0c204f181fddb56203d7f6fdf800508fce5
MD5 28220da936436aaec5e1d6f44b530131
BLAKE2b-256 0357574e8eef825f89466455f515062a63335e23d8f84be538cbd53161a7009c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp312-cp312-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 83bb19cce14175f6a80b7608a49a533a9060a272c5ab0ace93babb615af95da2
MD5 f209cfd621cb195451f9ad0f98e69182
BLAKE2b-256 e765707987874888c2180c9a0101a8078ee2c90580fab99676002e8f7344fdab

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 2e141ce9adffcd6ca79509d236c3cb9b4873f7f7f40f336ab46ddeea64286f30
MD5 47ef3f369f06b8795c7c26c8b1a73053
BLAKE2b-256 50f2d2f59298e06f234f537bc4e618a72122bc16eedb9ebc3b7c68002fb0ef80

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp312-cp312-macosx_13_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7e474eea9620cce36adcb8e82b9c60dc119cf8403d93243d776db0e77dc3ee50
MD5 e7d7cf82b93641d8837a75d295f05bf1
BLAKE2b-256 19a598d4f0f25af3272fb1c295ee4cbe6baa34866241eaedb371b04f8c7f4a5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp312-cp312-macosx_13_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 29bce048ee6fbee0b208a2d3afac609c77ffad27a9daba0d92b4a1ee9961f7d2
MD5 1d3f59c6ee17c873e848b726d216c938
BLAKE2b-256 6121199217fa61f6fb486091a25ca7a2cb28a5da91ec226b0d1ba0d9486d8502

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp311-cp311-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2b964620233627adb69c4fce8caa36b5517c2b39bd7f01b642b679de7a3b2abe
MD5 668347d7594b247955e0e796f577f3c8
BLAKE2b-256 f9339a5e7702006657911c41e98304a1f29dc477e19ab5436136852acb73fe25

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0042459b932cbe939cfedf135b29f3ef8ff579195f4d7abe1784e9199d278fcf
MD5 c6f63c120e842c81193b421d05f79cb2
BLAKE2b-256 b742a178b9f3145b1fce1a0fc55d3f1daf1f12a0d9653117210564e53f4e09c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp311-cp311-macosx_13_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 921b4a48fc9540c98bbec535ca243896dbfa9ff23fb4057bc2c904f856f34531
MD5 3bfaf97f7724700f12e0495c182c0da5
BLAKE2b-256 ba2b0098fdcd49bc07049bb6c76db732599dd80db0151896a47d42bd52bb05b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp311-cp311-macosx_13_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9eefee6d50687ae2e45f9b4d65483f18d13f261de01a2e0a2241249801b341f5
MD5 c4f19a339707362b33d73038e1190ab7
BLAKE2b-256 69af289e36c1f0f1ceceede3549852dd593ff085a2d861198b62e78846fb9bb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp310-cp310-win_amd64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b80c8220bdf03500b30f45d76d943493f06a251648300dcbf3fa4a21b0992b10
MD5 7648249d8394a37d9fbab6529b211f8f
BLAKE2b-256 923a3ce42bd65b10e44bba47dd68b3c18b84018f66834dfe4ddf0d541928e6e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 49ece235ff3beee18273ed0bad4da6a969b96e8687749e3b9b91b9e529bd256e
MD5 adba9651ba312f06f4ea7701c0f72d81
BLAKE2b-256 5213fb9dab694b3f7fbf6f174a48f9c931f02c487502cea704e79eb8bf35c141

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp310-cp310-macosx_13_0_x86_64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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_esn-0.3.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for hypercube_esn-0.3.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 499da5048168443547addc4db0e58cd5bb2e93e69f3079d3378c17582384a249
MD5 c0a1d2d7c5745ada247b94e424b6f614
BLAKE2b-256 7a1299748937e6084473ba9e70a65bb77efb3eedd17b1cc1df5bcbc50231cdbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for hypercube_esn-0.3.0-cp310-cp310-macosx_13_0_arm64.whl:

Publisher: wheels.yml on dliptak001/HypercubeESN

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