LogoLogo
👨‍💻 API Reference📣 Release Notes📺 Request a Demo
  • Introduction to Fiddler
    • Monitor, Analyze, and Protect your ML Models and Gen AI Applications
  • Fiddler Doc Chatbot
  • First Steps
    • Getting Started With Fiddler Guardrails
    • Getting Started with LLM Monitoring
    • Getting Started with ML Model Observability
  • Tutorials & Quick Starts
    • LLM and GenAI
      • LLM Evaluation - Compare Outputs
      • LLM Monitoring - Simple
    • Fiddler Free Guardrails
      • Guardrails - Quick Start Guide
      • Guardrails - Faithfulness
      • Guardrails - Safety
      • Guardrails FAQ
    • ML Observability
      • ML Monitoring - Simple
      • ML Monitoring - NLP Inputs
      • ML Monitoring - Class Imbalance
      • ML Monitoring - Model Versions
      • ML Monitoring - Ranking
      • ML Monitoring - Regression
      • ML Monitoring - Feature Impact
      • ML Monitoring - CV Inputs
  • Glossary
    • Product Concepts
      • Baseline
      • Custom Metric
      • Data Drift
      • Embedding Visualization
      • Fiddler Guardrails
      • Fiddler Trust Service
      • LLM and GenAI Observability
      • Metric
      • Model Drift
      • Model Performance
      • ML Observability
      • Trust Score
  • Product Guide
    • LLM Application Monitoring & Protection
      • LLM-Based Metrics
      • Embedding Visualizations for LLM Monitoring and Analysis
      • Selecting Enrichments
      • Enrichments (Private Preview)
      • Guardrails for Proactive Application Protection
    • Optimize Your ML Models and LLMs with Fiddler's Comprehensive Monitoring
      • Alerts
      • Package-Based Alerts (Private Preview)
      • Class Imbalanced Data
      • Enhance ML and LLM Insights with Custom Metrics
      • Data Drift: Monitor Model Performance Changes with Fiddler's Insights
      • Ensuring Data Integrity in ML Models And LLMs
      • Embedding Visualization With UMAP
      • Fiddler Query Language
      • Model Versions
      • How to Effectively Use the Monitoring Chart UI
      • Performance Tracking
      • Model Segments: Analyze Cohorts for Performance Insights and Bias Detection
      • Statistics
      • Monitoring ML Model and LLM Traffic
      • Vector Monitoring
    • Enhance Model Insights with Fiddler's Slice and Explain
      • Events Table in RCA
      • Feature Analytics Creation
      • Metric Card Creation
      • Performance Charts Creation
      • Performance Charts Visualization
    • Master AI Monitoring: Create, Customize, and Compare Dashboards
      • Creating Dashboards
      • Dashboard Interactions
      • Dashboard Utilities
    • Adding and Editing Models in the UI
      • Model Editor UI
      • Model Schema Editing Guide
    • Fairness
    • Explainability
      • Model: Artifacts, Package, Surrogate
      • Global Explainability: Visualize Feature Impact and Importance in Fiddler
      • Point Explainability
      • Flexible Model Deployment
        • On Prem Manual Flexible Model Deployment XAI
  • Technical Reference
    • Python Client API Reference
    • Python Client Guides
      • Installation and Setup
      • Model Onboarding
        • Create a Project and Onboard a Model for Observation
        • Model Task Types
        • Customizing your Model Schema
        • Specifying Custom Missing Value Representations
      • Publishing Inference Data
        • Creating a Baseline Dataset
        • Publishing Batches Of Events
        • Publishing Ranking Events
        • Streaming Live Events
        • Updating Already Published Events
        • Deleting Events From Fiddler
      • Creating and Managing Alerts
      • Explainability Examples
        • Adding a Surrogate Model
        • Uploading Model Artifacts
        • Updating Model Artifacts
        • ML Framework Examples
          • Scikit Learn
          • Tensorflow HDF5
          • Tensorflow Savedmodel
          • Xgboost
        • Model Task Examples
          • Binary Classification
          • Multiclass Classification
          • Regression
          • Uploading A Ranking Model Artifact
    • Integrations
      • Data Pipeline Integrations
        • Airflow Integration
        • BigQuery Integration
        • Integration With S3
        • Kafka Integration
        • Sagemaker Integration
        • Snowflake Integration
      • ML Platform Integrations
        • Integrate Fiddler with Databricks for Model Monitoring and Explainability
        • Datadog Integration
        • ML Flow Integration
      • Alerting Integrations
        • PagerDuty Integration
    • Comprehensive REST API Reference
      • Projects REST API Guide
      • Model REST API Guide
      • File Upload REST API Guide
      • Custom Metrics REST API Guide
      • Segments REST API Guide
      • Baselines REST API Guide
      • Jobs REST API Guide
      • Alert Rules REST API Guide
      • Environments REST API Guide
      • Explainability REST API Guide
      • Server Info REST API Guide
      • Events REST API Guide
      • Fiddler Trust Service REST API Guide
    • Fiddler Free Guardrails Documentation
  • Configuration Guide
    • Authentication & Authorization
      • Adding Users
      • Overview of Role-Based Access Control
      • Email Authentication
      • Okta Integration
      • SSO with Azure AD
      • Ping Identity SAML SSO Integration
      • Mapping LDAP Groups & Users to Fiddler Teams
    • Application Settings
    • Supported Browsers
  • History
    • Release Notes
    • Python Client History
    • Compatibility Matrix
    • Product Maturity Definitions
Powered by GitBook

© 2024 Fiddler Labs, Inc.

On this page
  • Updating Ground Truth Labels
  • Updating Metadata Columns
  • Label Update Examples

Was this helpful?

  1. Technical Reference
  2. Python Client Guides
  3. Publishing Inference Data

Updating Already Published Events

Fiddler allows you to update specific fields in previously published events. While your model feature values can't be updated, you can update:

  • Target column values (ground truth labels)

  • Metadata columns

Input, Output, and Custom Feature column types cannot be updated once published. If values for these columns are included with your update (update_event=True), they will be ignored.

Updating Ground Truth Labels

Updating ground truth labels is the most common use case for post-publish updates.

You can update events when:

  • Actual values become available for events initially published without labels

  • You discover that initially uploaded labels are incorrect

Things to keep in mind about ground truth labels (target values):

  • Use null values when initially publishing inferences that don't yet have labels

  • Fiddler automatically keeps aggregated performance metrics current as labels are updated

  • Labels can be updated multiple times if necessary

Updating Metadata Columns

Fiddler supports updating metadata columns with new values. This is particularly useful for supporting alternate labels that can be used with Custom Metrics to calculate alternative performance metrics.

Things to keep in mind regarding metadata updates:

  • Pre-calculated aggregated metrics will not reflect the updated values

  • Custom Metrics, used in charts and alerts, will always use the current values since they're calculated at runtime

  • Updating metadata columns requires additional processing time, so only send updates when necessary

Label Update Examples

Stream Label Updates

As with inference publishing, label updates can be sent as streams or batches.

Stream Update Data Formats

  • List of Python dictionaries

Stream Update One or More Events

Integrate Fiddler directly into your production system to publish label updates as they occur. The event ID, the column chosen for Model.event_id_col, is required.

import fiddler as fdl

# Instantiate the Model object for your model
project = fdl.Project.from_name(name='your_project_name')
model = fdl.Model.from_name(name='your_model_name', project_id=project.id)

event_update = [
    {
        'label_value': 1,
        'event_id': 'A1',
    },
    ...
]

# Streaming update returns the list of event ID(s) updated.
event_id = model.publish(
    source=events_update,
    environment=fdl.EnvType.PRODUCTION,
    update=True,
)

Stream Update Label and Metadata

Metadata column(s) can also be updated.

import fiddler as fdl

# Instantiate the Model object for your model
project = fdl.Project.from_name(name='your_project_name')
model = fdl.Model.from_name(name='your_model_name', project_id=project.id)

event_update = [
    {
        'metadata_col': 'yes',
        'label_value': 1,
        'event_id': 'A1',
    },
]

event_id = model.publish(
    source=events_update,
    environment=fdl.EnvType.PRODUCTION,
    update=True,
)

Batch Update Data Formats

  • pandas DataFrame

  • CSV file (.csv),

  • Parquet file (.parquet)

Batch Update Events

Publish larger sets of label updates using batch publishing. The event ID, the column chosen for Model.event_id_col, is required.

import pandas as pd
import fiddler as fdl

project = fdl.Project.from_name(name='your_project_name')
model = fdl.Model.from_name(name='your_model_name', project_id=project.id)
label_batch = pd.read_parquet('path_to_your_updated_labels/data.parquet')

update_job =  = model.publish(
    source=events_update,
    environment=fdl.EnvType.PRODUCTION,
    update=True,
)

📘 There are a few points to be aware of:

    • For example, if the ground truth values are originally missing from events in a given time range, there will be no performance metrics available for that time range. Once the events are updated, performance metrics will be computed and will populate the monitoring charts.

    • Events that do not originally have ground truth labels should be uploaded with empty values—not dummy values. If dummy values are used, you will have improper performance metrics, and once the new values come in, the old, incorrect values will still be present.

    • Metrics based on Metadata columns won't reflect updates.

  • In order to update existing events, you will need access to the event IDs used at the time of upload.

  • Updating the event timestamp, Model.event_ts_col, is not supported.

PreviousStreaming Live EventsNextDeleting Events From Fiddler

Last updated 1 month ago

Was this helpful?

Updated values are visible in Feature Analytics and views

Refer to documentation for more details on different sources and parameters.

metrics (available in monitoring charts and alert rules) will be computed as ground truth labels are inserted and recomputed when later updated.

Root Cause Analysis
Performance

Need help? Contact us at .

💡
help@fiddler.ai
Model.publish()