<?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: Balancing data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/897474#M105756</link>
    <description>&lt;P&gt;Thanks for your clear advice Victor.&lt;/P&gt;
&lt;P&gt;For the time being, I have checked the performance of my models usings the "Inbalanced Classification" Add-Ins and calculated the Precision Recall &amp;amp; ROC AUC for Neural Network ,Bootstrap Forrest and Boosted Tree models with SMOTE and with TOMEC balancing and without weighting but it didn't improve the AUCs at all. So, balancing my data probably would not improve the performance anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your support,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lu&lt;/P&gt;</description>
    <pubDate>Thu, 28 Aug 2025 10:55:48 GMT</pubDate>
    <dc:creator>Lu</dc:creator>
    <dc:date>2025-08-28T10:55:48Z</dc:date>
    <item>
      <title>Balancing data</title>
      <link>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/897411#M105752</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to balance my data before analysing of my data since &lt;SPAN&gt;my response has a rate of only 27%. I first created a stratified (based on my target column) validation column to create a Training, Validation and Test set. My question is should I balance my data in both the training + validation set and not in the Test set or only in the training set? I would like to use the SMOTE technique and finally the cross validation technique of the Model screening platform on the concacenated databases (training+validation+test) with a Validation column for Test set perfomance analysis. Is this method the way for balancing my data before cross validation?&amp;nbsp; Other suggestions always welcome?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lu&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 23:00:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/897411#M105752</guid>
      <dc:creator>Lu</dc:creator>
      <dc:date>2025-08-27T23:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Balancing data</title>
      <link>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/897437#M105754</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13264"&gt;@Lu&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have mixed feelings about SMOTE or other balancing techniques for classification :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SMOTE completely "destroys" the calibration of your classifier (as it completely changes the proportion of the two classes during the learning phase), which means that the probabilities calculated by your classifier do not correspond to actual measured probabilities in your dataset. This can be particularly sensistive for certain applications (healthcare, finance/banking, ...), as sometimes you may need the calculated probabilities instead of the final majority class.&lt;/LI&gt;
&lt;LI&gt;Moreover, in the &lt;A style="font-family: inherit; background-color: #ffffff;" href="https://arxiv.org/abs/1106.1813" target="_self"&gt;original paper&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://arxiv.org/pdf/2201.08528" target="_self"&gt;confirmed in later studies&lt;/A&gt;&lt;SPAN&gt;, SMOTE only provide small benefits when the classifier is a weak learner model, like Decision Tree and Naïve Bayes. When used with state-of-the-art/"strong" models (like Random Forest, XGBoost, ...), SMOTE doesn't provide benefits, and may even be detrimental to the learning. Another study here :&lt;A href="https://onlinelibrary.wiley.com/doi/10.1002/sim.10320" target="_blank" rel="noopener"&gt;&amp;nbsp;The Harms of Class Imbalance Corrections for Machine Learning Based Prediction Models: A Simulation Study - Carriero - 2025 - Statistics in Medicine - Wiley Online Library&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;In most studies, the conclusion regarding these techniques are the same : "&lt;EM&gt;proper, best prediction is achieved by using a strong classifier and balancing the data is not required nor beneficial&lt;/EM&gt;" or "&lt;SPAN&gt;&lt;EM&gt;Correcting for class imbalance is not always necessary and may even be harmful to clinical prediction models which aim to produce reliable risk estimates on an individual basis.&lt;/EM&gt;".&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;SMOTE may be beneficial in specific contexts, like using weak learners or when you can't adjust decision thresholds, but its relative benefit may also change depending on the performance metrics chosen. Besides that, I would not recommend using it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;27% for a minority class is not a huge imbalance, and classical methods like adjusting the&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.1/index.shtml#page/jmp/decision-thresholds-report.shtml" target="_blank" rel="noopener"&gt;Decision Thresholds&lt;/A&gt;&amp;nbsp;or specifying a&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.1/index.shtml#page/jmp/specify-profit-matrix.shtml" target="_blank" rel="noopener"&gt;Profit Matrix&lt;/A&gt;&amp;nbsp;should help you adjust the performances of your classifier to the situation. Adding new features/variables, pre-process the data (feature engineering) to help the model, adding new data or selecting the most representative and different observations, and trying several models for comparison and benchmarking can also help increase your performances.&lt;BR /&gt;It's important to understand that imbalanced data is a problem only because the minority class in the training set is not representative enough and/or the features are not good enough indicators for the label. The ideal scenario is to solve these two problems, then the model can perform perfectly well despite the imbalance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;This being said, adding a SMOTE (or any pre-processing) operation in the workflow (if needed) should be done with care, to avoid data leakage and false over-optimistic performance expectations. SMOTE or any other balancing technique should be applied in the training and validation sets (to train, compare and select the best performing model) but obviously not in the test set, as the model needs to perform and be evaluated in "real-life" conditions (with the severe imbalance).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Hope this answer will help you,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 08:30:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/897437#M105754</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-08-28T08:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Balancing data</title>
      <link>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/897474#M105756</link>
      <description>&lt;P&gt;Thanks for your clear advice Victor.&lt;/P&gt;
&lt;P&gt;For the time being, I have checked the performance of my models usings the "Inbalanced Classification" Add-Ins and calculated the Precision Recall &amp;amp; ROC AUC for Neural Network ,Bootstrap Forrest and Boosted Tree models with SMOTE and with TOMEC balancing and without weighting but it didn't improve the AUCs at all. So, balancing my data probably would not improve the performance anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your support,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lu&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 10:55:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/897474#M105756</guid>
      <dc:creator>Lu</dc:creator>
      <dc:date>2025-08-28T10:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Balancing data</title>
      <link>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/905083#M106357</link>
      <description>&lt;P&gt;Hey Russ,&lt;/P&gt;
&lt;P data-start="78" data-end="393"&gt;I have a &lt;STRONG data-start="87" data-end="101"&gt;Validation&lt;/STRONG&gt; column that distinguishes between training, validation, and test rows. Should this column be specified in the model screening platform when applying nested cross-validation? I have noticed that the performance statistics summary differs depending on whether or not this column is included.&lt;/P&gt;
&lt;P data-start="395" data-end="467"&gt;Could you confirm what the recommended approach would be in this case?&lt;/P&gt;
&lt;P data-start="395" data-end="467"&gt;I would like to compare and report&amp;nbsp; the performance of ML models.&amp;nbsp;&lt;/P&gt;
&lt;P data-start="395" data-end="467"&gt;Is there a fast way to get into more details then the current produced summury report such as F1, MCC, Sens, Spec, FP, FN, ...&lt;/P&gt;
&lt;P data-start="395" data-end="467"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="395" data-end="467"&gt;regards,&lt;/P&gt;
&lt;P data-start="395" data-end="467"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="395" data-end="467"&gt;Lu&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 11:24:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/905083#M106357</guid>
      <dc:creator>Lu</dc:creator>
      <dc:date>2025-09-30T11:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Balancing data</title>
      <link>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/905113#M106361</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13264"&gt;@Lu&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have selected a cross-validation option when launching the Model Screening platform, adding a validation column won't change anything, as the selected cross-validation option will take over the validation column:&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.1/#page/jmp/launch-the-model-screening-platform.shtml#" target="_blank"&gt;Launch the Model Screening Platform&lt;/A&gt;&amp;nbsp;(validation part).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The different results you may obtain are rather due to the random seed if you didn't fixed it. Adding or not a validation column when a crossvalidation option is selected will lead to the same results with a fixed random seed:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1759235299792.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83956iB42455D2B5062500/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1759235299792.png" alt="Victor_G_0-1759235299792.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the (broad) topic of model evaluation, comparison and selection, several other topics may help you find a relevant validation strategy:&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="How to perform k-fold cross-validation on ML models (e.g. neural network and random forest) and check model performance on fixed test data?" uid="610848" url="https://community.jmp.com/t5/Discussions/How-to-perform-k-fold-cross-validation-on-ML-models-e-g-neural/m-p/610848#U610848" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;LI-MESSAGE title="model screening" uid="752105" url="https://community.jmp.com/t5/Discussions/model-screening/m-p/752105#U752105" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="One or more Validation column" uid="825899" url="https://community.jmp.com/t5/Discussions/One-or-more-Validation-column/m-p/825899#U825899" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="cross validation using k-fold fit quality" uid="855682" url="https://community.jmp.com/t5/Discussions/cross-validation-using-k-fold-fit-quality/m-p/855682#U855682" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="leave-one-out or k-fold cross-validation methods??" uid="751578" url="https://community.jmp.com/t5/Discussions/leave-one-out-or-k-fold-cross-validation-methods/m-p/751578#U751578" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="CROSS VALIDATION - VALIDATION COLUMN METHOD" uid="588298" url="https://community.jmp.com/t5/Discussions/CROSS-VALIDATION-VALIDATION-COLUMN-METHOD/m-p/588298#U588298" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this answer will help you,&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 12:37:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Balancing-data/m-p/905113#M106361</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-09-30T12:37:46Z</dc:date>
    </item>
  </channel>
</rss>

