Step 3: Define a metrics evaluation custom component
Before deploying our model to production, we need
to:
+ Setup our Data, Model and Code pipelines
+ Define a metrics evaluation custom component
Define a metrics evaluation custom component
+ retrieves the classification model evaluation
generated by the AutoML tabular training
process
+ uses given threshold information
o (ie. thresholds_dict)
+ compares that to the evaluation results to
determine whether the model is sufficiently
accurate to deploy
Step 4: Create component pipelines
Define and create the following pipelines using vertex.ai pre-built components
(only if threshold checks from Step 3 passed then the pipeline would run):
Data
pipeline
+ TabularDatasetCreateOp:
retrieves given dataset source
from either in Cloud Storage
or BigQuery
Model
pipeline
+ AutoMLTabularTrainingJobRunOp:
kicks off an AutoML training job for
a tabular dataset
+ EndpointCreateOp: creates an
endpoint in Vertex Al
Code
pipeline
+ ModelDeployOp: deploys a
given model to an endpoint in
Vertex Al
+ VertexNotificationEmailOp:
Send notification email(s) when
an upstream task completes