reservoir-core 0.1.0

Core traits, types, and metrics for reservoir computing (ESN). Supports optional no_std/alloc via feature flags.
Documentation
#![cfg_attr(not(feature = "std"), allow(unused_imports))]

use crate::{
    readout::Readout,
    reservoir::Reservoir,
    types::{Input, Output, Scalar},
};

pub trait Trainer<R, O, S>
where
    R: Reservoir<S>,
    O: Readout<S>,
    S: Scalar,
{
    type Error;

    fn fit(
        &mut self,
        reservoir: &mut R,
        readout: &mut O,
        inputs: &[Input<S>],
        targets: &[Output<S>],
        washout: usize,
    ) -> Result<(), Self::Error>;
}

pub struct RidgeParams<S: Scalar> {
    pub ridge: S,
}