Scoring with XGBoost
Score with XGBoost using the supported SQL functions to predict values.
The SQL scoring functions supported for a
classification XGBoost model are PREDICTION,
PREDICTION_COST, PREDICTION_DETAILS,
PREDICTION_PROBABILITY, and
PREDICTION_SET.
The scoring functions supported
for a regression XGBoost model are PREDICTION and
PREDICTION_DETAILS.
The prediction functions return the following information:
PREDICTIONreturns the predicted value.PREDICTION_COSTreturns a measure of cost for a given prediction as an Oracle NUMBER. (classification only)PREDICTION_DETAILSreturns the SHAP (SHapley Additive exPlanation) contributions.PREDICTION_PROBABILITYreturns the probability for a given prediction. (classification only)PREDICTION_SETreturns the prediction and the corresponding prediction probability for each observation. (classification only)