PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #256
You are developing an ML model that predicts the cost of used automobiles based on data such as location, condition, model type, color, and engine/battery efficiency. The data is updated every…
The correct answer is B. Compare the training and evaluation losses of the current run. If the losses are similar, deploy the. To minimize retraining costs, compare the current model's evaluation results to those of the previously deployed model, and only deploy the new model if its performance has improved and if its evaluation loss is not significantly worse than training loss.
Question
Options
- ACompare the training and evaluation losses of the current run. If the losses are similar, deploy the
- BCompare the training and evaluation losses of the current run. If the losses are similar, deploy the
- CCompare the results to the evaluation results from a previous run. If the performance improved
- DCompare the results to the evaluation results from a previous run. If the performance improved
How the community answered
(36 responses)- A6% (2)
- B81% (29)
- C3% (1)
- D11% (4)
Why each option
To minimize retraining costs, compare the current model's evaluation results to those of the previously deployed model, and only deploy the new model if its performance has improved and if its evaluation loss is not significantly worse than training loss.
Comparing only training and evaluation losses of the current run primarily checks for overfitting in the current run, but does not guarantee improvement over the previously deployed model, which is crucial for a cost-effective retraining workflow.
Comparing the current model's evaluation results against a previously deployed model (and considering whether training loss is too different from evaluation loss to avoid overfitting) allows for deploying only when there's a demonstrable performance improvement. This prevents unnecessary retraining or deployment of inferior models, directly minimizing computational costs associated with model deployment and potential rollback if a model regresses.
While comparing current and previous evaluation results is good, adding a specific 'more than 5%' threshold might unnecessarily delay deployment of models with valid, smaller improvements, potentially hindering timely updates.
This choice repeats A, which only checks for overfitting in the current run and doesn't consider the performance relative to the currently deployed model.
Concept tested: Cost-effective model retraining and deployment criteria
Source: https://cloud.google.com/vertex-ai/docs/ml-pipelines/model-deployment-strategies
Topics
Community Discussion
No community discussion yet for this question.