Skip to main content

Module verify

Module verify 

Source
Expand description

Pipeline verification & visualization system (APR-VERIFY-001) Pipeline Verification & Visualization System (APR-VERIFY-001)

Deterministic, visual pipeline verification for ML model debugging. Combines Pixar/Weta-style stage gates with Probar-style TUI testing.

§Overview

This module provides systematic ground truth comparison at each pipeline stage, enabling rapid identification of divergence points in ML inference pipelines.

§Example

use aprender::verify::{Pipeline, Stage, GroundTruth, Tolerance};

let pipeline = Pipeline::builder("whisper-tiny")
    .stage("mel")
        .ground_truth(GroundTruth::from_stats(0.0, -0.215, 0.448))
        .tolerance(Tolerance::percent(5.0))
        .build_stage()
    .build()
    .expect("valid pipeline config");

let result = pipeline.verify(&input_data);
assert!(result.all_passed());

Structs§

Delta
Delta represents the divergence between computed output and ground truth.
GroundTruth
Ground truth statistics for a tensor at a pipeline stage.
Pipeline
A verification pipeline consisting of multiple stages.
PipelineBuilder
Builder for constructing pipelines.
Stage
Definition of a pipeline stage.
StageBuilder
Builder for constructing stages.
StageResult
Result of verifying a single stage.
VerifyReport
Report of pipeline verification results.

Enums§

Metric
Statistical divergence metrics for comparison.
StageStatus
Status of a stage verification.
Tolerance
Tolerance threshold for pipeline stage verification.