<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom AutoML pipeline: Beyond StandardScaler(). in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/custom-automl-pipeline-beyond-standardscaler/m-p/137451#M4402</link>
    <description>&lt;P&gt;Greetings&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85808"&gt;@sharpbetty&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great question! Databricks AutoML's "glass box" approach actually gives you several options to customize preprocessing beyond the default StandardScaler. Here are two practical approaches:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option A: Pre-process Features Before AutoML&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The simplest solution is to apply your custom transformations (log transforms, winsorization, sigmoid transforms, etc.) before passing the data to AutoML. Create a preprocessing notebook where you apply all your feature engineering, save the transformed dataset, and then point AutoML to this pre-processed table. Since AutoML applies StandardScaler through a ColumnTransformer, you can include a mix of already-transformed numerical features and let AutoML handle only the basic preprocessing.&lt;/P&gt;
&lt;P&gt;AutoML will still apply its default preprocessing pipeline, but if your features are already appropriately scaled or transformed, the additional StandardScaler step will have minimal impact, or you can include passthrough columns for features you don't want further processed.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option B: Modify the Generated Notebooks&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Databricks AutoML generates editable Python notebooks for each trial, which is the core of its glass box approach. Here's how to leverage this:&lt;/P&gt;
&lt;P&gt;1. Run an initial AutoML experiment to generate the baseline notebooks&lt;BR /&gt;2. Access the generated notebooks from the Source column in the AutoML experiment UI or from the MLflow run artifacts&lt;BR /&gt;3. Edit the preprocessing pipeline in the generated notebook - specifically, modify or replace the ColumnTransformer and StandardScaler components with your custom transformers&lt;BR /&gt;4. Re-run the modified notebook with your custom preprocessing logic&lt;/P&gt;
&lt;P&gt;The generated notebooks contain the complete source code including data preprocessing, feature engineering, model training, and hyperparameter tuning, so you have full control to customize any part of the pipeline.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Finding the Pipeline Code&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The AutoML pipeline code isn't exposed in the UI setup, but it's automatically generated and accessible through the trial notebooks. For the best trial, the notebook is automatically imported to your workspace. For other trials, notebooks are saved as MLflow artifacts under the Artifacts section of each run page and can be downloaded or imported.&lt;/P&gt;
&lt;P&gt;Unfortunately, there's no built-in UI option to customize the preprocessing pipeline before the AutoML run starts - you'll need to use one of the approaches above. The glass box approach is designed specifically to enable this kind of post-generation customization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, Louis.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Nov 2025 20:47:47 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2025-11-03T20:47:47Z</dc:date>
    <item>
      <title>Custom AutoML pipeline: Beyond StandardScaler().</title>
      <link>https://community.databricks.com/t5/machine-learning/custom-automl-pipeline-beyond-standardscaler/m-p/93763#M3726</link>
      <description>&lt;P&gt;The automated notebook pipeline in an AutoML experiment applies StandardScaler to all numerical features in the training dataset as part of the PreProcessor. See below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sharpbetty_0-1728884608851.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11877i2E2912885482F442/image-size/large?v=v2&amp;amp;px=999" role="button" title="sharpbetty_0-1728884608851.png" alt="sharpbetty_0-1728884608851.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;But I want a more nuanced and varied treatment of my numeric values (e.g. I have log transforms, winsorization, sigmoid transforms etc etc)&lt;BR /&gt;&lt;BR /&gt;I want to either:&lt;BR /&gt;&lt;STRONG&gt;a)&lt;/STRONG&gt; Remove all feature engineering / scaling from the automated Preprocessor and have the AutoML notebook run my features as presented to the AutoML experiment.&lt;BR /&gt;or&lt;BR /&gt;&lt;STRONG&gt;b)&lt;/STRONG&gt; Edit the AutoML default pipeline to include a custom PreProcessor script to do more than simply scale every numeric value.&lt;BR /&gt;&lt;BR /&gt;How can i achieve this? I can't seem to find any option to customize this in the UI AutoML Experiment setup and I've got no idea where to find code for the default pipeline that's invoked on every experiment.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 05:53:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/custom-automl-pipeline-beyond-standardscaler/m-p/93763#M3726</guid>
      <dc:creator>sharpbetty</dc:creator>
      <dc:date>2024-10-14T05:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom AutoML pipeline: Beyond StandardScaler().</title>
      <link>https://community.databricks.com/t5/machine-learning/custom-automl-pipeline-beyond-standardscaler/m-p/137451#M4402</link>
      <description>&lt;P&gt;Greetings&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85808"&gt;@sharpbetty&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great question! Databricks AutoML's "glass box" approach actually gives you several options to customize preprocessing beyond the default StandardScaler. Here are two practical approaches:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option A: Pre-process Features Before AutoML&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The simplest solution is to apply your custom transformations (log transforms, winsorization, sigmoid transforms, etc.) before passing the data to AutoML. Create a preprocessing notebook where you apply all your feature engineering, save the transformed dataset, and then point AutoML to this pre-processed table. Since AutoML applies StandardScaler through a ColumnTransformer, you can include a mix of already-transformed numerical features and let AutoML handle only the basic preprocessing.&lt;/P&gt;
&lt;P&gt;AutoML will still apply its default preprocessing pipeline, but if your features are already appropriately scaled or transformed, the additional StandardScaler step will have minimal impact, or you can include passthrough columns for features you don't want further processed.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option B: Modify the Generated Notebooks&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Databricks AutoML generates editable Python notebooks for each trial, which is the core of its glass box approach. Here's how to leverage this:&lt;/P&gt;
&lt;P&gt;1. Run an initial AutoML experiment to generate the baseline notebooks&lt;BR /&gt;2. Access the generated notebooks from the Source column in the AutoML experiment UI or from the MLflow run artifacts&lt;BR /&gt;3. Edit the preprocessing pipeline in the generated notebook - specifically, modify or replace the ColumnTransformer and StandardScaler components with your custom transformers&lt;BR /&gt;4. Re-run the modified notebook with your custom preprocessing logic&lt;/P&gt;
&lt;P&gt;The generated notebooks contain the complete source code including data preprocessing, feature engineering, model training, and hyperparameter tuning, so you have full control to customize any part of the pipeline.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Finding the Pipeline Code&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The AutoML pipeline code isn't exposed in the UI setup, but it's automatically generated and accessible through the trial notebooks. For the best trial, the notebook is automatically imported to your workspace. For other trials, notebooks are saved as MLflow artifacts under the Artifacts section of each run page and can be downloaded or imported.&lt;/P&gt;
&lt;P&gt;Unfortunately, there's no built-in UI option to customize the preprocessing pipeline before the AutoML run starts - you'll need to use one of the approaches above. The glass box approach is designed specifically to enable this kind of post-generation customization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, Louis.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 20:47:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/custom-automl-pipeline-beyond-standardscaler/m-p/137451#M4402</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-11-03T20:47:47Z</dc:date>
    </item>
  </channel>
</rss>

