refactor(registry): single-source the deflation-bootstrap constants (#199)
DEFLATION_N_RESAMPLES (1000) and DEFLATION_BLOCK_LEN (5) were duplicated as independent copies in aura-cli and aura-campaign — a silent-drift risk (an edit in one crate but not the other refuses nothing, it just produces a wrong deflation result). Promote a single definition into aura-registry, which owns optimize_deflated (the sole consumer of these counts); aura-cli imports it and aura-campaign re-exports it to keep its public path stable. DEFLATION_SEED stays cli-local (no campaign twin). Values unchanged; behaviour-preserving, suite green unchanged (1043/0). closes #199
This commit is contained in:
@@ -595,6 +595,13 @@ pub fn optimize_plateau(
|
||||
))
|
||||
}
|
||||
|
||||
/// Deflation-bootstrap default: the resample count of the null-distribution
|
||||
/// bootstrap consumed by [`optimize_deflated`].
|
||||
pub const DEFLATION_N_RESAMPLES: usize = 1000;
|
||||
/// Deflation-bootstrap default: the moving-block length of the null-distribution
|
||||
/// bootstrap consumed by [`optimize_deflated`].
|
||||
pub const DEFLATION_BLOCK_LEN: usize = 5;
|
||||
|
||||
/// `optimize`'s argmax winner PLUS its trials-deflation provenance. The returned
|
||||
/// `SweepPoint` is byte-identical to `optimize(family, metric)` (additive, C23).
|
||||
/// R arm: a centred moving-block reality-check (`overfit_probability` =
|
||||
|
||||
Reference in New Issue
Block a user