<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Inference Lakehouse Monitor , how to create a monitor on more than one prediction in Khoros Community Forums Support (Not for Databricks Product Questions)</title>
    <link>https://community.databricks.com/t5/khoros-community-forums-support/inference-lakehouse-monitor-how-to-create-a-monitor-on-more-than/m-p/156118#M221</link>
    <description>&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2026 01:27:09 GMT</pubDate>
    <dc:creator>AustinZaccor</dc:creator>
    <dc:date>2026-05-05T01:27:09Z</dc:date>
    <item>
      <title>Inference Lakehouse Monitor , how to create a monitor on more than one prediction</title>
      <link>https://community.databricks.com/t5/khoros-community-forums-support/inference-lakehouse-monitor-how-to-create-a-monitor-on-more-than/m-p/91042#M118</link>
      <description>&lt;P&gt;Currently,&amp;nbsp;&lt;SPAN&gt;prediction_col only accept string type, but I want to monitor a list of predictions, like in quantile regression. Any tips?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;info = w.quality_monitors.create(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;table_name=TABLE_NAME,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;inference_log=MonitorInferenceLog(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;granularities=GRANULARITIES,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;timestamp_col=TIMESTAMP_COL,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;model_id_col=MODEL_ID_COL, &lt;/SPAN&gt;&lt;SPAN&gt;# Model version number &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;prediction_col=PREDICTION_COL,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;problem_type=PROBLEM_TYPE,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;label_col=LABEL_COL &lt;/SPAN&gt;&lt;SPAN&gt;# Optional&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;baseline_table_name=BASELINE_TABLE,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;slicing_exprs=SLICING_EXPRS,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;output_schema_name=&lt;/SPAN&gt;&lt;SPAN&gt;f"&lt;/SPAN&gt;&lt;SPAN&gt;{CATALOG}&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;{SCHEMA}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;assets_dir=ASSETS_DIR&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Sep 2024 10:19:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/khoros-community-forums-support/inference-lakehouse-monitor-how-to-create-a-monitor-on-more-than/m-p/91042#M118</guid>
      <dc:creator>noah_sunny</dc:creator>
      <dc:date>2024-09-19T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inference Lakehouse Monitor , how to create a monitor on more than one prediction</title>
      <link>https://community.databricks.com/t5/khoros-community-forums-support/inference-lakehouse-monitor-how-to-create-a-monitor-on-more-than/m-p/156118#M221</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 01:27:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/khoros-community-forums-support/inference-lakehouse-monitor-how-to-create-a-monitor-on-more-than/m-p/156118#M221</guid>
      <dc:creator>AustinZaccor</dc:creator>
      <dc:date>2026-05-05T01:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inference Lakehouse Monitor , how to create a monitor on more than one prediction</title>
      <link>https://community.databricks.com/t5/khoros-community-forums-support/inference-lakehouse-monitor-how-to-create-a-monitor-on-more-than/m-p/160615#M232</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This is a known limitation of the Databricks Lakehouse Monitoring API. Here's what you need to know and the workarounds:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Limitation:&lt;BR /&gt;"prediction_col" must be a double type (not a string, and not a list/array)&lt;BR /&gt;Reference :&amp;nbsp;&lt;A title="Medium Reference" href="https://medium.com/marvelous-mlops/streamlining-ml-model-monitoring-with-databricks-lakehouse-and-inference-tables-f0a99ab03291" target="_self"&gt;https://medium.com/marvelous-mlops/streamlining-ml-model-monitoring-with-databricks-lakehouse-and-inference-tables-f0a99ab03291&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="" title="https://medium.com/marvelous-mlops/streamlining-ml-model-monitoring-with-databricks-lakehouse-and-inference-tables-f0a99ab03291" href="https://medium.com/marvelous-mlops/streamlining-ml-model-monitoring-with-databricks-lakehouse-and-inference-tables-f0a99ab03291" rel="noreferrer noopener" aria-label="Link https://medium.com/marvelous-mlops/streamlining-ml-model-monitoring-with-databricks-lakehouse-and-inference-tables-f0a99ab03291" target="_blank"&gt;The API only accepts a single scalar column. There's no native support for multi-output predictions like quantile regression.&lt;BR /&gt;Workaround Options:&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp;Create separate monitors per quantile (Recommended) : Unpivot your quantile predictions into separate tables, each with its own scalar "prediction_col", and create one monitor per quantile&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;e.g., for quantiles [0.1, 0.5, 0.9]&lt;BR /&gt;for quantile, col_name in [("q10", "pred_q10"), ("q50", "pred_q50"), ("q90", "pred_q90")]:&lt;BR /&gt;spark.sql(f"""&lt;BR /&gt;CREATE OR REPLACE TABLE {CATALOG}.{SCHEMA}.inference_log_{quantile}&lt;BR /&gt;AS SELECT *, {col_name} AS prediction FROM {TABLE_NAME}&lt;BR /&gt;""")&lt;BR /&gt;w.quality_monitors.create(&lt;BR /&gt;table_name=f"{CATALOG}.{SCHEMA}.inference_log_{quantile}",&lt;BR /&gt;inference_log=MonitorInferenceLog(&lt;BR /&gt;granularities=GRANULARITIES,&lt;BR /&gt;timestamp_col=TIMESTAMP_COL,&lt;BR /&gt;model_id_col=MODEL_ID_COL,&lt;BR /&gt;prediction_col="prediction", &lt;BR /&gt;problem_type=MonitorInferenceLogProblemType.PROBLEM_TYPE_REGRESSION,&lt;BR /&gt;label_col=LABEL_COL,&lt;BR /&gt;),&lt;BR /&gt;output_schema_name=f"{CATALOG}.{SCHEMA}",&lt;BR /&gt;assets_dir=f"{ASSETS_DIR}/{quantile}",&lt;BR /&gt;)&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;2. Use "custom_metrics" for the extra quantiles&lt;/P&gt;&lt;P&gt;Keep one quantile as the primary "prediction_col" (e.g., median), and track the others via custom metrics:&lt;/P&gt;&lt;PRE&gt;from databricks.sdk.service.catalog import MonitorMetric, MonitorMetricType&lt;BR /&gt;custom_metrics = [&lt;BR /&gt;MonitorMetric(&lt;BR /&gt;name="mean_pred_q10",&lt;BR /&gt;input_columns=["pred_q10"],&lt;BR /&gt;definition="avg(:pred_q10)",&lt;BR /&gt;output_data_type="double",&lt;BR /&gt;type=MonitorMetricType.CUSTOM_METRIC_TYPE_AGGREGATE,&lt;BR /&gt;),&lt;BR /&gt;MonitorMetric(&lt;BR /&gt;name="mean_pred_q90",&lt;BR /&gt;input_columns=["pred_q90"],&lt;BR /&gt;definition="avg(:pred_q90)",&lt;BR /&gt;output_data_type="double",&lt;BR /&gt;type=MonitorMetricType.CUSTOM_METRIC_TYPE_AGGREGATE,&lt;BR /&gt;),&lt;BR /&gt;]&lt;BR /&gt;&lt;BR /&gt;w.quality_monitors.create(&lt;BR /&gt;table_name=TABLE_NAME,&lt;BR /&gt;inference_log=MonitorInferenceLog(&lt;BR /&gt;prediction_col="pred_q50", ]&lt;BR /&gt;...&lt;BR /&gt;),&lt;BR /&gt;custom_metrics=custom_metrics,&lt;BR /&gt;...&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;3. Use Snapshot analysis instead&lt;/P&gt;&lt;P&gt;If you don't need the inference-specific accuracy metrics (MSE, etc.), switch to a &lt;STRONG&gt;Snapshot monitor.&lt;/STRONG&gt; It will profile all your quantile columns as regular numeric columns and still compute drift/distribution stats across all of them no "prediction_col" constraint.&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2026 06:03:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/khoros-community-forums-support/inference-lakehouse-monitor-how-to-create-a-monitor-on-more-than/m-p/160615#M232</guid>
      <dc:creator>Sureshkrishna</dc:creator>
      <dc:date>2026-06-26T06:03:29Z</dc:date>
    </item>
  </channel>
</rss>

