-
Notifications
You must be signed in to change notification settings - Fork 0
PD Cross Validation
The cross-validation module assesses model reliability through two complementary mechanisms: physics-informed validation and data-driven consensus.
Each A-Rule tests whether a model respects a fundamental physical law within its local neighborhood in the design space. For each model and each rule:
- For each design point, find the
$k$ nearest neighbors in the model's input context space using a Ball Tree. - Compute the Spearman rank correlation between the rule's transformed input (e.g., viscous stress
$\mu U_s/D_p^2$ ) and output (e.g.,$\Delta P/L$ ) across the neighborhood. - Compare the observed correlation direction against the expected physical relationship (positive or negative monotonicity).
- Assign a validity score (0–1) based on correlation strength; unreliable neighborhoods (too sparse, too uniform) are skipped.
Currently implemented A-Rules:
At each design point, a consensus
- Number of contributing models (density penalty for sparse coverage).
- Agreement among models (coefficient of variation).
- Average validity of contributing models.
Generalized routine for initial and final consensuses
After consensus, each model's predictions are compared against the consensus. Models that consistently deviate are penalized or discarded, and the final consensus is recomputed.