Skip to main content

entrenar/storage/preflight/
mod.rs

1//! Pre-flight Validation System (Jidoka)
2//!
3//! Validates data integrity and environment before training starts.
4//! Catches 30-50% of ML pipeline failures before training.
5//!
6//! # Toyota Way: 自働化 (Jidoka)
7//!
8//! Built-in quality through automatic defect detection at source.
9//!
10//! # Example
11//!
12//! ```
13//! use entrenar::storage::preflight::{Preflight, PreflightCheck, CheckResult};
14//!
15//! let preflight = Preflight::new()
16//!     .add_check(PreflightCheck::no_nan_values())
17//!     .add_check(PreflightCheck::no_inf_values())
18//!     .add_check(PreflightCheck::min_samples(2))
19//!     .add_check(PreflightCheck::disk_space_mb(1));
20//!
21//! let data = vec![vec![1.0, 2.0], vec![3.0, 4.0]];
22//! let results = preflight.run(&data);
23//! assert!(results.all_passed());
24//! ```
25
26mod check_result;
27mod checks;
28mod results;
29mod types;
30mod validator;
31
32// Re-export all public types for API compatibility
33pub use check_result::CheckResult;
34pub use checks::PreflightCheck;
35pub use results::PreflightResults;
36pub use types::{CheckMetadata, CheckType, PreflightContext, PreflightError};
37pub use validator::Preflight;