[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Autologging: Notebook\n\nAs part of the data science team, you want to try different modeling approaches\nduring experimentation phase.To guarantee reproducibility, each approach has\ndifferent parameters that you need to manually track. Vertex AI SDK for Python\nautologging, which is a one-line code SDK capability leveraging MLflow,\nprovides automatic metrics and parameters tracking associated with your\nVertex AI Experiments and experiment runs.\n\nNotebook: Vertex AI Experiments Autologging\n-------------------------------------------\n\n| To see an example of autologging in Vertex AI Experiments,\n| run the \"Vertex AI Experiments: Autologging\" notebook in one of the following\n| environments:\n|\n| [Open in Colab](https://colab.research.google.com/github/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/experiments/get_started_with_vertex_experiments_autologging.ipynb)\n|\n|\n| \\|\n|\n| [Open in Colab Enterprise](https://console.cloud.google.com/vertex-ai/colab/import/https%3A%2F%2Fraw.githubusercontent.com%2FGoogleCloudPlatform%2Fvertex-ai-samples%2Fmain%2Fnotebooks%2Fofficial%2Fexperiments%2Fget_started_with_vertex_experiments_autologging.ipynb)\n|\n|\n| \\|\n|\n| [Open\n| in Vertex AI Workbench](https://console.cloud.google.com/vertex-ai/workbench/deploy-notebook?download_url=https%3A%2F%2Fraw.githubusercontent.com%2FGoogleCloudPlatform%2Fvertex-ai-samples%2Fmain%2Fnotebooks%2Fofficial%2Fexperiments%2Fget_started_with_vertex_experiments_autologging.ipynb)\n|\n|\n| \\|\n|\n| [View on GitHub](https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/experiments/get_started_with_vertex_experiments_autologging.ipynb)\n\nIn the \"Vertex AI Experiments: Autologging\" notebook,\nyou'll learn how to use Vertex AI Experiments to:\n\n- Enable autologging in the Vertex AI SDK for Python.\n- Train scikit-learn model and see the resulting experiment run with metrics and parameters autologged to Vertex AI Experiments without setting an experiment run.\n- Train TensorFlow model, check autologged metrics and parameters to Vertex AI Experiments by manually setting an experiment run with `aiplatform.start_run()` and `aiplatform.end_run()`.\n- Disable autologging in the Vertex AI SDK for Python, train a PyTorch model and check that none of the parameters or metrics are logged.\n\nRelevant content\n----------------\n\n- [Autolog data](/vertex-ai/docs/experiments/autolog-data#auto-created)"]]