<?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: Memory error in LightGBM training data processing in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/memory-error-in-lightgbm-training-data-processing/m-p/155651#M4612</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/228470"&gt;@tkfm_s&lt;/a&gt;&lt;BR /&gt;Yes, using&amp;nbsp;&lt;SPAN&gt;SynapseML's LightGBMClassifier / LightGBMRegressor lets you train directly on a Spark DataFrame, no pandas conversion required and also e&lt;/SPAN&gt;nsure partitions match executor cores so LightGBM uses them all. And if you have wide range of columns it is advised to decrease them to avoid OOM.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Attaching the document for lightgbm distributed training:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://lightgbm.readthedocs.io/en/latest/Parallel-Learning-Guide.html" target="_blank"&gt;https://lightgbm.readthedocs.io/en/latest/Parallel-Learning-Guide.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2026 09:45:55 GMT</pubDate>
    <dc:creator>JAHNAVI</dc:creator>
    <dc:date>2026-04-28T09:45:55Z</dc:date>
    <item>
      <title>Memory error in LightGBM training data processing</title>
      <link>https://community.databricks.com/t5/machine-learning/memory-error-in-lightgbm-training-data-processing/m-p/155649#M4611</link>
      <description>&lt;P&gt;I am developing a LightGBM model on Databricks, and I am using the Native API because it offers the widest range of options and allows me to try various approaches.&lt;/P&gt;&lt;P&gt;The training data is loaded from a table in the Catalog as a Spark DataFrame. However, my understanding is that when using the Native API, the data needs to be converted into a pandas DataFrame.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Due to project constraints, the available memory is limited to 32 GB&lt;/SPAN&gt;&lt;SPAN&gt; and I cannot use AutoML&lt;/SPAN&gt;&lt;SPAN&gt;. When the training data is large, this pandas conversion process can result in an out-of-memory error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For example, I tried splitting the data into column-wise chunks and converting each chunk to pandas as suggested by Genie code, but this caused misalignment along the row dimension.&lt;/P&gt;&lt;P&gt;Because the project schedule is extremely tight and I do not have much time to investigate this deeply, I would appreciate any good solutions or best practices.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By the way, I have heard tha&lt;/SPAN&gt;&lt;SPAN&gt;t there is &lt;/SPAN&gt;&lt;SPAN&gt;Spark LightGBM. If I use that, is it possible to train a model without converting the data to pandas?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 09:13:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/memory-error-in-lightgbm-training-data-processing/m-p/155649#M4611</guid>
      <dc:creator>tkfm_s</dc:creator>
      <dc:date>2026-04-28T09:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Memory error in LightGBM training data processing</title>
      <link>https://community.databricks.com/t5/machine-learning/memory-error-in-lightgbm-training-data-processing/m-p/155651#M4612</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/228470"&gt;@tkfm_s&lt;/a&gt;&lt;BR /&gt;Yes, using&amp;nbsp;&lt;SPAN&gt;SynapseML's LightGBMClassifier / LightGBMRegressor lets you train directly on a Spark DataFrame, no pandas conversion required and also e&lt;/SPAN&gt;nsure partitions match executor cores so LightGBM uses them all. And if you have wide range of columns it is advised to decrease them to avoid OOM.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Attaching the document for lightgbm distributed training:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://lightgbm.readthedocs.io/en/latest/Parallel-Learning-Guide.html" target="_blank"&gt;https://lightgbm.readthedocs.io/en/latest/Parallel-Learning-Guide.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 09:45:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/memory-error-in-lightgbm-training-data-processing/m-p/155651#M4612</guid>
      <dc:creator>JAHNAVI</dc:creator>
      <dc:date>2026-04-28T09:45:55Z</dc:date>
    </item>
  </channel>
</rss>

