Model training with prebuilt data pre-processing code: Notebook
Stay organized with collections
Save and categorize content based on your preferences.
As a Data Scientist, this is a common workflow: Train a model
locally (in my Notebook), log the parameters, log the training time series
metrics to Vertex AI TensorBoard,
and log the evaluation metrics.
As a Data Scientist, I want to be able to reuse data pre-processing code that
others within my company have written to simplify and standardize all the
complex data wrangling that we do. I want to be able to:
Use a Python data pre-processing library to clean up an in memory dataset
(a Pandas Dataframe), in a notebook.
Train a model using Keras (again in a notebook).
Notebook: Model experimentation with preprocessed data
In the "Build Vertex AI Experiments lineage for custom training"
notebook, you'll learn how to integrate preprocessing code in
Vertex AI Experiments.
Also, you'll build the experiment lineage that lets you record, analyze,
debug, and audit metadata and artifacts produced along your ML journey.
You can view the artifact lineage in the Google Cloud console.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],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)"]]