Skip to content

Commit

Permalink
fix: Fix feature attribution drift visualization for model monitoring…
Browse files Browse the repository at this point in the history
… SDK

PiperOrigin-RevId: 633754094
  • Loading branch information
vertex-sdk-bot authored and Copybara-Service committed May 15, 2024
1 parent 6bdcfb3 commit 710f33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertexai/resources/preview/ml_monitoring/model_monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _visualize_feature_attribution(feature_attribution_output: str) -> None:
import tensorflow as tf

with tf.io.gfile.GFile(feature_attribution_output, "r") as f:
return json.loads(f.read())
print(json.dumps(json.loads(f.read()), indent=4))


def _feature_drift_stats_output_path(output_directory: str, job_id: str) -> (str, str):
Expand Down

0 comments on commit 710f33d

Please sign in to comment.