NeuromorphicAlgorithm

Trait NeuromorphicAlgorithm 

Source
pub trait NeuromorphicAlgorithm<T> {
    type Input;
    type Output;
    type Error;

    // Required methods
    fn fit(&mut self, data: &Self::Input) -> Result<Self::Output, Self::Error>;
    fn predict(&self, data: &Self::Input) -> Result<Self::Output, Self::Error>;
    fn parameters(&self) -> T;
    fn reset(&mut self);
}
Expand description

Neuromorphic algorithm trait for unified interface

This trait provides a common interface for all neuromorphic algorithms, enabling interchangeable use and consistent API across different approaches.

Required Associated Types§

Source

type Input

Input data type

Source

type Output

Output data type

Source

type Error

Error type

Required Methods§

Source

fn fit(&mut self, data: &Self::Input) -> Result<Self::Output, Self::Error>

Fit the algorithm to spatial data

Source

fn predict(&self, data: &Self::Input) -> Result<Self::Output, Self::Error>

Predict using the trained algorithm

Source

fn parameters(&self) -> T

Get algorithm parameters

Source

fn reset(&mut self)

Reset algorithm to initial state

Implementors§