Skip to content

lightborneintelligence/WaveML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WaveML

Naming and Imports

  • GitHub repository: WaveML
  • Python package: waveml_jax

The repository name reflects the project identity.
The Python package name follows standard import conventions.

Example

import waveml_jax
from waveml_jax.core.representation import WaveState



Error Rectification by Alignment (ERA) — Reference Implementation

Lightborne Intelligence

Truth > Consensus. Sovereignty > Control. Coherence > Speed.


Overview

WaveML is a reference implementation of Error Rectification by Alignment (ERA), a governance mechanism for wave-native learning systems.

ERA enforces physically meaningful invariants on internal model statesamplitude, energy, and phaseto ensure bounded trajectories and graceful degradation under noise, drift, and long-horizon propagation.

This repository provides a canonical, minimal, and correct implementation intended for research, evaluation, and extension.


Core Idea

Conventional machine learning systems attempt to achieve robustness indirectly through preprocessing, regularization, or loss shaping.

ERA takes a different approach:

Robustness is governed, not optimized.

ERA constrains how internal states may evolve, independently of task objectives, by enforcing invariant-preserving rectification at every computational step.


What This Repository IsA reference implementation of ERAWave-native state representations (amplitude + phase)
✅ Deterministic, reproducible JAX codeSynthetic and academic benchmarksBaseline comparisons for stability and robustness


What This Repository Is NOTA production-ready systemA domain-calibrated solutionA collection of tuned hyperparametersA deployment playbook

Domain-specific calibration, operating envelopes, and production integrations are intentionally out of scope.


Repository Structure
"""
WaveML/

├── waveml_jax/
│   ├── core/
│   │   ├── representation.py
│   │   ├── invariants.py
│   │   └── era_rectify.py
│   │
│   ├── models/
│   │   ├── waveseq.py
│   │   ├── wave_rf.py
│   │   └── baselines.py
│   │
│   └── benchmarks/
│       ├── delayed_copy.py
│       ├── noise_sweep.py
│       └── snr_sweep.py

├── README.md
├── pyproject.toml
└── LICENSE
"""


Installation

CPU (default)

pip install git+https://github.com/lightborneintelligence/WaveML.git@v1.0.0

CUDA (NVIDIA GPU)

Install JAX with CUDA support first, then WaveML:

pip install --upgrade "jax[cuda12]"
pip install git+https://github.com/lightborneintelligence/WaveML.git@v1.0.0

Ensure the CUDA version matches your system.
See the official JAX installation guide for supported configurations.


Quick Sanity Check

python - <<'PY'
import jax.numpy as jnp
from waveml_jax.core.representation import WaveState
from waveml_jax.core.invariants import InvariantBounds
from waveml_jax.core.era_rectify import era_rectify

state = WaveState(
    amplitude=jnp.array([0.5, 2.0]),
    phase=jnp.array([0.0, 10.0])
)
bounds = InvariantBounds(max_amplitude=1.0, max_energy=1.0)
print(era_rectify(state, bounds))
PY

This verifies invariant enforcement (energy bounding + phase wrapping).


Error Rectification by Alignment (ERA)

ERA enforces the following invariants at every step:
	1.	Amplitude non-negativity
	2.	Amplitude bounds (element-wise)
	3.	Total energy bounds (global)
	4.	Phase wrapping to ([-π, π])
	5.	Phase gating where amplitude vanishes

Rather than suppressing or filtering states, ERA realigns them to the nearest admissible configuration while preserving information content.


Design PrinciplesWave-nativePhase preserved end-to-endGoverned dynamicsInvalid states cannot ariseDifferentiableFully compatible with gradient-based learningArchitecture-agnosticApplicable to recurrent, convolutional, and hybrid systemsReproducibleFixed seeds and documented configurations (noting device-specific JAX/XLA nondeterminism)


Intended Use

WaveML is intended for:
	•	Research into robustness and stabilityEvaluation of wave-native representationsBenchmarking against classical baselinesEducational and exploratory use

It is not intended as a drop-in production system.


Publications

This repository accompanies the technical report:

Error Rectification by Alignment (ERA): A Governance Primitive for Wave-Native Learning Systems
Jesus Carrasco, Lightborne Intelligence (2026)
Zenodo: https://doi.org/10.5281/zenodo.18263860

Application-focused reports (Part II: sensing, RF, long-horizon sequence modeling) are forthcoming.


LicenseCode: Apache License 2.0Documentation: CC-BY-4.0

See LICENSE for details.


Citation

If you use this work, please cite:

Carrasco, J. (2026).
Error Rectification by Alignment (ERA): A Governance Primitive for Wave-Native Learning Systems.
Zenodo. https://doi.org/10.5281/zenodo.18263860


#Disclaimer

This is a reference implementation provided for research and evaluation purposes.
No guarantees are made regarding fitness for production or safety-critical use.


© 2026 Lightborne Intelligence

About

Wave-native learning primitives governed by Error Rectification by Alignment (ERA). Reference implementation in JAX.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages