cancel
Showing results for 
Search instead for 
Did you mean: 
Khoros Community Forums Support (Not for Databricks Product Questions)
Please use this forum to alert the Community administrators to issues with the Khoros platform and moderation concerns. This is not a forum for Databricks product questions.
cancel
Showing results for 
Search instead for 
Did you mean: 

Inference Lakehouse Monitor , how to create a monitor on more than one prediction

noah_sunny
New Contributor II

Currently, prediction_col only accept string type, but I want to monitor a list of predictions, like in quantile regression. Any tips?

 

info = w.quality_monitors.create(
table_name=TABLE_NAME,
inference_log=MonitorInferenceLog(
granularities=GRANULARITIES,
timestamp_col=TIMESTAMP_COL,
model_id_col=MODEL_ID_COL, # Model version number
prediction_col=PREDICTION_COL,
problem_type=PROBLEM_TYPE,
label_col=LABEL_COL # Optional
),
baseline_table_name=BASELINE_TABLE,
slicing_exprs=SLICING_EXPRS,
output_schema_name=f"{CATALOG}.{SCHEMA}",
assets_dir=ASSETS_DIR
)


1 REPLY 1

AustinZaccor
Databricks Employee
Databricks Employee

Unfortunately this can only take a single column. To monitor a list of predictions for quantile regression, you need to flatten the list into distinct columns before creating the monitor.