Skip to main content

PredictionIntervals

Class for storing prediction intervals metadata information.

TransferConformal

Predict-time configuration for transfer conformal prediction. Pass to 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

Cross-validate against the fitted PredictionIntervals config.

estimate_density_ratio

Estimate w(x) = p_target(x) / p_source(x) for source domain points. Trains a binary classifier (source=0, target=1) on StandardScaler- normalised features and returns the odds ratio p(1|x) / p(0|x) for each source point. Parameters: Returns: