Algorithm 1.
Robust multi-source confonnal prediction
| 1: | Input: Training data with number of sites , and the target site is indexed by ; desired coverage probability ; estimators of nuisance functions , , and for ; a tuning parameter (in the optimization step); a testing point from the target site. |
| 2: | Output: A valid prediction set . |
| 3: | Split the training data randomly into and , where for and . |
| 4: | Fit nuisance functions and using SuperLearner on and predict them on . |
| 5: | For the target site , find that solves . |
| 6: | For source sites , find that solves . Compute . |
| 7: | Solve for aggregation weights that minimize subject to and . |
| 8: | Compute . |
| 9: | Return: The prediction set . |