Visualizations
Learn how to visualize the data artifacts produced by your ZenML pipelines.
Last updated
Was this helpful?
Learn how to visualize the data artifacts produced by your ZenML pipelines.
Last updated
Was this helpful?
Data visualization is a powerful tool for understanding your ML pipeline outputs. ZenML provides built-in capabilities to visualize artifacts, helping you gain insights into your data, model performance, and pipeline execution.
ZenML automatically generates visualizations for many common data types, making it easy to inspect your artifacts without additional code.
The ZenML dashboard displays visualizations for artifacts produced by your pipeline runs:
To view visualizations in the dashboard:
Navigate to the Runs tab
Select a specific pipeline run
Click on any step to view its outputs
Select an artifact to view its visualizations
You can also display artifact visualizations in Jupyter notebooks using the visualize()
method:
ZenML supports visualizations for many common data types out of the box:
Pandas DataFrames are visualized as interactive tables with statistical summaries:
NumPy arrays are visualized based on their dimensionality:
1D arrays: Histograms or line plots
2D arrays: Heatmaps or scatter plots
3D arrays: Multiple 2D visualizations or interactive 3D plots
Image data (PNG, JPEG, etc.) is displayed directly:
Matplotlib figures are rendered directly:
Many ZenML integrations provide specialized visualizations:
Confusion matrices and performance metrics
And many more!
You can create custom visualizations for your artifacts by implementing a custom Visualizer:
Register your visualizer:
ZenML supports several visualization formats:
Image: PNG, JPEG, or other image formats
HTML: Interactive HTML elements
Markdown: Formatted text with markup
JSON: Structured data for custom rendering
Text: Plain text outputs
You can control whether visualizations are generated at the pipeline or step level:
You can also configure this in YAML:
For production environments where visualization may add overhead, you can disable visualizations globally:
Or in your ZenML configuration:
Be selective: Generate visualizations for key insights, not everything
Consider performance: Complex visualizations can slow down pipeline execution
Use appropriate formats: Choose the right format for your data (e.g., HTML for interactive content)
Provide context: Add titles, labels, and descriptions to make visualizations more understandable
Build for scale: Create visualizations that work well with both small and large datasets
Visualizing artifacts is a powerful way to gain insights from your ML pipelines. ZenML's built-in visualization capabilities make it easy to understand your data and model outputs, identify issues, and communicate results.
By leveraging these visualization tools, you can better understand your ML workflows, debug problems more effectively, and make more informed decisions about your models.
Data drift and quality reports from are displayed as interactive HTML:
datasets are visualized using an interactive dataset viewer:
profiles
validation results