Inner function for grid search
grid_inner(
hyp_ncs,
y_hat,
ncs,
pos_vals,
alpha,
ncs_type,
distance_weighted_cp,
distance_features_calib,
distance_features_pred,
distance_type,
normalize_distance,
weight_function
)a numeric vector with the predicted value and the lower and upper bounds of the prediction interval
vector of hypothetical non-conformity scores
predicted value
vector of non-conformity scores
vector of possible values for the lower and upper bounds of the prediction interval
confidence level
type of non-conformity score
logical. If TRUE, the non-conformity scores will be weighted according to the distance function
a matrix of features for the calibration partition. Used when distance_weighted_cp is TRUE
a matrix of features for the prediction partition. Used when distance_weighted_cp is TRUE
The type of distance metric to use when computing distances between calibration and prediction points. Options are 'mahalanobis' and 'euclidean'.
Either 'minmax', 'sd', or 'none'. Indicates how to normalize the distances when distance_weighted_cp is TRUE
a function to use for weighting the distances. Can be 'gaussian_kernel', 'caucy_kernel', 'logistic', or 'reciprocal_linear'. Default is 'gaussian_kernel'