diagnose
diagnose(
max_gap_ratio=MAX_GAP_RATIO,
min_r2_score=MIN_R2_SCORE,
max_avg_cv=MAX_AVG_CV,
max_max_cv=MAX_MAX_CV,
max_allowed_vif=MAX_ALLOWED_VIF,
)
Runs statistical diagnostics to evaluate if the current sample size is sufficient.
Parameters
| max_gap_ratio |
float |
Largest allowed coverage gap, as a fraction of each input’s range. |
MAX_GAP_RATIO |
| min_r2_score |
float |
Minimum cross-validated R² for the model-fit check. |
MIN_R2_SCORE |
| max_avg_cv |
float |
Maximum average bootstrap spread (relative to the response std). |
MAX_AVG_CV |
| max_max_cv |
float |
Maximum bootstrap spread at any probe point. |
MAX_MAX_CV |
| max_allowed_vif |
float |
Maximum Variance Inflation Factor for the collinearity check. |
MAX_ALLOWED_VIF |
Returns
|
pd.DataFrame |
pd.DataFrame: One row per test with its value, threshold and pass/fail |
|
pd.DataFrame |
(empty if there is no valid data). |