Skip to main content

Module robustness

Module robustness 

Source
Expand description

Edge Case and Robustness Testing

Tests model behavior on edge cases: NaN, Inf, empty inputs, max-size tensors, zero vectors, etc.

§Toyota Way Alignment

  • Poka-yoke: Prevent errors through comprehensive edge case testing

Modules§

numerical
Numerical stability tests

Structs§

EdgeCaseConfig
Edge case test configuration
EdgeCaseResult
Result of an edge case test

Enums§

EdgeCaseBehavior
Expected behavior for edge cases

Functions§

run_edge_case_tests
Run all edge case tests
test_empty_handling
Test if a function handles empty inputs gracefully
test_inf_handling
Test if a function handles Infinity inputs gracefully
test_nan_handling
Test if a function handles NaN inputs gracefully
test_zero_handling
Test if a function handles zero vectors gracefully