Skip to main content

reservoir_core/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2//! Core traits and utilities for reservoir computing / Echo State Networks.
3//!
4//! # Design
5//! This crate defines small, reusable building blocks:
6//! - [`Reservoir`]: state transition (input -> internal state)
7//! - [`Readout`]: mapping from state -> output
8//! - [`Trainer`]: fitting readout parameters from sequences
9//!
10//! # Feature flags
11//! - `std` (default): enables standard library support.
12//! - `alloc`: enables heap-backed vectors/matrices via `nalgebra`.
13//! - `libm`: enables `libm` math for targets without `std` floating-point support.
14//!
15//! Note: Many concrete implementations live in `reservoir-infer` / `reservoir-train`.
16//!
17//! # State layout convention
18//! Implementations in this workspace commonly expose an **extended state**
19//! `[1, input..., reservoir_state...]` (bias + input + reservoir).
20//! See `reservoir-infer` reservoirs for details.
21
22#[cfg(feature = "alloc")]
23extern crate alloc;
24
25pub mod metrics;
26pub mod prelude;
27pub mod readout;
28pub mod reservoir;
29pub mod trainer;
30pub mod types;
31
32pub use metrics::*;
33pub use readout::*;
34pub use reservoir::*;
35pub use trainer::*;
36pub use types::*;