ke actions) can happen here

return profile.view()Visualizing whylogs Profiles

You can view visualizations of the whylogs profiles generated by your pipeline steps directly in the ZenML dashboard by clicking on the respective artifact in the pipeline run DAG.

Alternatively, if you are running inside a Jupyter notebook, you can load and render the whylogs profiles using the artifact.visualize() method, e.g.:

from zenml.client import Client

def visualize_statistics(

step_name: str, reference_step_name: Optional[str] = None

) -> None:

"""Helper function to visualize whylogs statistics from step artifacts.

Args:

step_name: step that generated and returned a whylogs profile

reference_step_name: an optional second step that generated a whylogs

profile to use for data drift visualization where two whylogs

profiles are required.

"""

pipe = Client().get_pipeline(pipeline="data_profiling_pipeline")

whylogs_step = pipe.last_run.steps[step_name]

whylogs_step.visualize()

if __name__ == "__main__":

visualize_statistics("data_loader")

visualize_statistics("train_data_profiler", "test_data_profiler")

PreviousEvidently

NextDevelop a custom data validator

Last updated 19 days ago