Skip to content

Instantly share code, notes, and snippets.

@SaschaHeyer
Last active August 27, 2021 11:18
Show Gist options
  • Select an option

  • Save SaschaHeyer/b47f169b6c92508edb5f8fcd4e9c1f9f to your computer and use it in GitHub Desktop.

Select an option

Save SaschaHeyer/b47f169b6c92508edb5f8fcd4e9c1f9f to your computer and use it in GitHub Desktop.
Vertex AI Pipelines - metrics
@component()
def evaluate(
smetrics: Output[Metrics]
metrics: Output[ClassificationMetrics],
):
smetrics.log_metric("f1", float(f1))
metrics.log_confusion_matrix(...)
metrics.log_roc_curve(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment