PredictionIntervals
TransferConformal
MLForecast.predict(transfer_conformal=...) instead of the
removed flat kwargs transfer_conformal_method, covariate_shift_weights,
and dre_estimator. A plain string is shorthand for
TransferConformal(method=<str>).
TransferConformal.validate
estimate_density_ratio
| Name | Type | Description | Default |
|---|---|---|---|
source_features | ndarray | Feature matrix for source-domain calibration points, shape (n_source, n_features). | required |
target_features | ndarray | Feature matrix for target-domain points, shape (n_target, n_features). | required |
estimator | str | "logistic" (default) or "gradient_boosting". | ‘logistic’ |
cv | int | Number of stratified K-fold splits for cross-fitting (cv >= 2). Source weights are computed from out-of-fold predictions, reducing overfitting from in-sample scoring. cv=0 or cv=1 uses the original in-sample behavior. Defaults to 5. | 5 |
clip_quantile | Optional[float] | Clip source weights above this quantile of the computed weights to prevent extreme values. None disables clipping. Defaults to 0.99. | 0.99 |
return_target_weights | bool | If True, also return per-target-row weights (averaged across fold models when cv >= 2). Defaults to False. | False |

