在「Build Vertex AI Experiments lineage for custom training」(為自訂訓練建立 Vertex AI Experiments 沿襲) 筆記本中,您將瞭解如何在 Vertex AI Experiments 中整合前處理程式碼。此外,您還會建立實驗沿襲,以便記錄、分析、偵錯及稽核機器學習歷程中產生的中繼資料和構件。
[[["容易理解","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,["# Model training with prebuilt data pre-processing code: Notebook\n\nAs a Data Scientist, this is a common workflow: Train a model\nlocally (in my Notebook), log the parameters, log the training time series\nmetrics to ,\nand log the evaluation metrics.\n\nAs a Data Scientist, I want to be able to reuse data pre-processing code that\nothers within my company have written to simplify and standardize all the\ncomplex data wrangling that we do. I want to be able to:\n\n1. Use a Python data pre-processing library to clean up an in memory dataset (a Pandas Dataframe), in a notebook.\n2. Train a model using Keras (again in a notebook).\n\nNotebook: Model experimentation with preprocessed data\n------------------------------------------------------\n\n| To see an example of building a Vertex AI Experiments lineage for custom training,\n| run the \"Build Vertex AI Experiment lineage for custom training\" 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/build_model_experimentation_lineage_with_prebuild_code.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%2Fbuild_model_experimentation_lineage_with_prebuild_code.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%2Fbuild_model_experimentation_lineage_with_prebuild_code.ipynb)\n|\n|\n| \\|\n|\n| [View on GitHub](https://github.com/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/experiments/build_model_experimentation_lineage_with_prebuild_code.ipynb)\n\nIn the \"Build Vertex AI Experiments lineage for custom training\"\nnotebook, you'll learn how to integrate preprocessing code in\nVertex AI Experiments.\nAlso, you'll build the experiment lineage that lets you record, analyze,\ndebug, and audit metadata and artifacts produced along your ML journey.\n\nYou can view the artifact lineage in the Google Cloud console.\n\nRelevant content\n----------------\n\n- [Manually log data to an experiment run](/vertex-ai/docs/experiments/log-data)\n - [Log summary metrics](/vertex-ai/docs/experiments/log-data#summary-metrics)\n - [Log time series metrics](/vertex-ai/docs/experiments/log-data#time_series_metrics)\n - [Log parameters](/vertex-ai/docs/experiments/log-data#parameters)\n - [Log classification metrics](/vertex-ai/docs/experiments/log-data#classification-metrics)\n\n\u003c!-- --\u003e\n\n- [Track executions and artifacts](/vertex-ai/docs/experiments/track-executions-artifacts)"]]