Module middleware

Module middleware 

Source
Expand description

Middleware system for kernel approximation pipelines

This module provides a flexible middleware architecture for composing kernel approximation transformations with hooks, callbacks, and monitoring.

§Examples

use sklears_kernel_approximation::middleware::{Pipeline, PipelineBuilder};
// Create a pipeline with multiple transformations
// let pipeline = PipelineBuilder::new()
//     .add_transform(rbf_sampler)
//     .add_hook(logging_hook)
//     .add_middleware(normalization_middleware)
//     .build();

Structs§

HookContext
Context passed to hooks containing metadata
LoggingHook
Logging hook that records timing and shapes
NormalizationMiddleware
Normalization middleware
PerformanceHook
Performance monitoring hook
Pipeline
Pipeline for composing multiple kernel approximations
PipelineBuilder
Builder for creating pipelines
ValidationHook
Validation hook that checks for NaN and Inf

Traits§

Hook
Hook that can be called at various stages of the pipeline
Middleware
Middleware that wraps transformations
PipelineStage
Transform stage in the pipeline