<?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 AutoML &amp;quot;need to sample&amp;quot; not working as expected in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/automl-quot-need-to-sample-quot-not-working-as-expected/m-p/99800#M3802</link>
    <description>&lt;P&gt;tl; dr:&lt;/P&gt;&lt;P&gt;When the AutoML run realizes it&amp;nbsp;&lt;EM&gt;needs to do sampling&lt;/EM&gt; because the driver / worker node memory is not enough to load / process the entire dataset, it fails. A sample weight column is NOT provided by me, but I believe somewhere in the process the automl system believes it was supplied, tries to find it and encounters an error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="" href="https://docs.databricks.com/error-messages/unresolved-column-error-class.html#with_suggestion" target="_blank" rel="noopener noreferrer"&gt;UNRESOLVED_COLUMN.WITH_SUGGESTION&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt; A column, variable, or function parameter with name `_automl_sample_weight_0000` cannot be resolved. Did you mean one of the following? [`_automl_split_col_0000`, `t*****d`, `o******l`, `s*******o`, `f*******o`]. SQLSTATE: 42703&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;More details:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I am running an experiment with AutoML on 15.4LTS ML runtime cluster. I set up the experiment with a driver node i3.2xlarge and worker node r5d.2xlarge. I see a log in the AutoML run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;2024/11/22 17:41:53 INFO databricks.automl.internal.size_estimator: 
            mem_req_data_load_mb = 52148.01129505962
            mem_req_training_mb_dense = 30748.212867736816
            mem_req_training_mb_sparse = 28898.903835296627
            mem_req_training_mb = 30748.212867736816
2024/11/22 17:41:53 INFO databricks.automl.internal.size_estimator: fraction (0.34224123905739046) = min of
                      (available_memory_mb_per_trial (41139.0) / worker_max_memory_req_mb (52148.01129505962)),
                      (self._memory_mb_on_driver (17847.199999999997) / mem_req_data_load_mb (52148.01129505962))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, it goes into the code where it seems it is trying to sample and then fails. I am attaching the stacktrace as a pdf.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below snippet from the log showing that the sample_weight_col is NOT provided:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;2024/11/22 17:38:56 INFO databricks.automl.internal.supervised_learner: AutoML called with params: target_col=w***s, data_dir=None exclude_cols=None exclude_columns=['p***d', 'E***d', 'T***D', 'M***e', 'T***y'] exclude_frameworks=['lightgbm', 'sklearn'] imputers=None metric=roc_auc max_trials=10000000000.0 timeout_minutes=120 experiment_id=4***6 time_col=None experiment_dir=/Users/s***m/databricks_automl pos_label=1 split_col=None sample_weight_col=None &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sangramraje_0-1732300084616.png" style="width: 819px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13079i1E95CA966A7B0BD9/image-dimensions/819x86?v=v2" width="819" height="86" role="button" title="sangramraje_0-1732300084616.png" alt="sangramraje_0-1732300084616.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sangramraje_1-1732300133987.png" style="width: 817px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13080iD18A39631929FEAA/image-dimensions/817x94?v=v2" width="817" height="94" role="button" title="sangramraje_1-1732300133987.png" alt="sangramraje_1-1732300133987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The 2nd image above (Classifier._sample) clearly shows at that point the `sample_weight_col` is not None (goes inside the if). The 1st image is what seems suspicious to me, hence adding that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is most appreciated! I believe this piece of the source code is "internal" and closed hence posting here is the best I could do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 18:33:12 GMT</pubDate>
    <dc:creator>sangramraje</dc:creator>
    <dc:date>2024-11-22T18:33:12Z</dc:date>
    <item>
      <title>AutoML "need to sample" not working as expected</title>
      <link>https://community.databricks.com/t5/machine-learning/automl-quot-need-to-sample-quot-not-working-as-expected/m-p/99800#M3802</link>
      <description>&lt;P&gt;tl; dr:&lt;/P&gt;&lt;P&gt;When the AutoML run realizes it&amp;nbsp;&lt;EM&gt;needs to do sampling&lt;/EM&gt; because the driver / worker node memory is not enough to load / process the entire dataset, it fails. A sample weight column is NOT provided by me, but I believe somewhere in the process the automl system believes it was supplied, tries to find it and encounters an error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="" href="https://docs.databricks.com/error-messages/unresolved-column-error-class.html#with_suggestion" target="_blank" rel="noopener noreferrer"&gt;UNRESOLVED_COLUMN.WITH_SUGGESTION&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt; A column, variable, or function parameter with name `_automl_sample_weight_0000` cannot be resolved. Did you mean one of the following? [`_automl_split_col_0000`, `t*****d`, `o******l`, `s*******o`, `f*******o`]. SQLSTATE: 42703&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;More details:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I am running an experiment with AutoML on 15.4LTS ML runtime cluster. I set up the experiment with a driver node i3.2xlarge and worker node r5d.2xlarge. I see a log in the AutoML run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;2024/11/22 17:41:53 INFO databricks.automl.internal.size_estimator: 
            mem_req_data_load_mb = 52148.01129505962
            mem_req_training_mb_dense = 30748.212867736816
            mem_req_training_mb_sparse = 28898.903835296627
            mem_req_training_mb = 30748.212867736816
2024/11/22 17:41:53 INFO databricks.automl.internal.size_estimator: fraction (0.34224123905739046) = min of
                      (available_memory_mb_per_trial (41139.0) / worker_max_memory_req_mb (52148.01129505962)),
                      (self._memory_mb_on_driver (17847.199999999997) / mem_req_data_load_mb (52148.01129505962))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point, it goes into the code where it seems it is trying to sample and then fails. I am attaching the stacktrace as a pdf.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below snippet from the log showing that the sample_weight_col is NOT provided:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;2024/11/22 17:38:56 INFO databricks.automl.internal.supervised_learner: AutoML called with params: target_col=w***s, data_dir=None exclude_cols=None exclude_columns=['p***d', 'E***d', 'T***D', 'M***e', 'T***y'] exclude_frameworks=['lightgbm', 'sklearn'] imputers=None metric=roc_auc max_trials=10000000000.0 timeout_minutes=120 experiment_id=4***6 time_col=None experiment_dir=/Users/s***m/databricks_automl pos_label=1 split_col=None sample_weight_col=None &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sangramraje_0-1732300084616.png" style="width: 819px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13079i1E95CA966A7B0BD9/image-dimensions/819x86?v=v2" width="819" height="86" role="button" title="sangramraje_0-1732300084616.png" alt="sangramraje_0-1732300084616.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sangramraje_1-1732300133987.png" style="width: 817px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13080iD18A39631929FEAA/image-dimensions/817x94?v=v2" width="817" height="94" role="button" title="sangramraje_1-1732300133987.png" alt="sangramraje_1-1732300133987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The 2nd image above (Classifier._sample) clearly shows at that point the `sample_weight_col` is not None (goes inside the if). The 1st image is what seems suspicious to me, hence adding that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is most appreciated! I believe this piece of the source code is "internal" and closed hence posting here is the best I could do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 18:33:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/automl-quot-need-to-sample-quot-not-working-as-expected/m-p/99800#M3802</guid>
      <dc:creator>sangramraje</dc:creator>
      <dc:date>2024-11-22T18:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: AutoML "need to sample" not working as expected</title>
      <link>https://community.databricks.com/t5/machine-learning/automl-quot-need-to-sample-quot-not-working-as-expected/m-p/136717#M4389</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133467"&gt;@sangramraje&lt;/a&gt;&amp;nbsp;, sorry for the late response.&amp;nbsp; I wanted to check in to see if this is still an issue with the latest release?&amp;nbsp; Please let me know. Cheers, Louis.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 09:59:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/automl-quot-need-to-sample-quot-not-working-as-expected/m-p/136717#M4389</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-10-30T09:59:22Z</dc:date>
    </item>
  </channel>
</rss>

