ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 240 - Professional Machine Learning Engineer discussion

Report
Export

You want to migrate a scikrt-learn classifier model to TensorFlow. You plan to train the TensorFlow classifier model using the same training set that was used to train the scikit-learn model and then compare the performances using a common test set. You want to use the Vertex Al Python SDK to manually log the evaluation metrics of each model and compare them based on their F1 scores and confusion matrices. How should you log the metrics?

A.
Answers
A.
B.
Answers
B.
C.
Answers
C.
D.
Answers
D.
Suggested answer: D

Explanation:

To log the metrics of a machine learning model in TensorFlow using the Vertex AI Python SDK, you should utilize theaiplatform.log_metricsfunction to log the F1 score andaiplatform.log_classification_metricsfunction to log the confusion matrix. These functions allow users to manually record and store evaluation metrics for each model, facilitating an efficient comparison based on specific performance indicators like F1 scores and confusion matrices.Reference: The answer can be verified from official Google Cloud documentation and resources related to Vertex AI and TensorFlow.

Vertex AI Python SDK reference | Google Cloud

Logging custom metrics | Vertex AI

Migrating from scikit-learn to TensorFlow | TensorFlow

asked 18/09/2024
Saikhantsetseg Donnelly
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first