<script data-pm-proxy="intercept"></script><?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[AI-Driven Quant Investment Strategies]]></title><description><![CDATA[Cutting-edge research and hands-on insights into machine learning–driven factor models, backtesting, and portfolio construction with Portfolio123. Explore how AI can uncover alpha in inefficient markets.]]></description><link>https://aidrivenquantinvestment.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!w5NK!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69ceb46b-3d66-4d53-ad5a-cf228cd64464_478x478.png</url><title>AI-Driven Quant Investment Strategies</title><link>https://aidrivenquantinvestment.substack.com</link></image><generator>Substack</generator><lastBuildDate>Wed, 02 Sep 2026 00:16:25 GMT</lastBuildDate><atom:link href="/__u/aidrivenquantinvestment.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[@Opti_Quant]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[aidrivenquantinvestment@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[aidrivenquantinvestment@substack.com]]></itunes:email><itunes:name><![CDATA[@Opti_Quant]]></itunes:name></itunes:owner><itunes:author><![CDATA[@Opti_Quant]]></itunes:author><googleplay:owner><![CDATA[aidrivenquantinvestment@substack.com]]></googleplay:owner><googleplay:email><![CDATA[aidrivenquantinvestment@substack.com]]></googleplay:email><googleplay:author><![CDATA[@Opti_Quant]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Feature Design in Financial ML #1: Features Are Not “Data,” but “Investment Hypotheses”]]></title><description><![CDATA[How Models Use Alpha Factors, Risk Factors, and Feature Engineering]]></description><link>https://aidrivenquantinvestment.substack.com/p/feature-design-in-financial-ml-1</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/feature-design-in-financial-ml-1</guid><pubDate>Tue, 01 Sep 2026 12:04:03 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!1SLp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 3: Choosing the Right Features.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>#1: Features Are Not &#8220;Data,&#8221; but &#8220;Investment Hypotheses&#8221;</strong></h1><h2><span> </span><strong><span>(1) Introduction: We Finally Enter the Feature Section</span></strong></h2><p><span>Up to this point in this series, we have examined the characteristics of models in financial machine learning, primarily through a comparison of LightGBM and ExtraTrees.</span></p><p><span>The first major theme was to understand how these two tree-based models, LightGBM and ExtraTrees, behave when applied to financial data.</span></p><p><span>LightGBM is a very sharp model.</span></p><p><span>Through its gradient boosting mechanism, in which each new tree corrects the errors left by the previous trees, it can strongly capture complex nonlinear patterns in historical data as well as interactions among features.</span></p><p><span>At the same time, that sharpness is also a risk.</span></p><p><span>Financial data contains a great deal of noise, including many coincidental patterns that existed only in the past.</span></p><p><span>For that reason, with LightGBM, the important question was:</span></p><blockquote><p><span>How carefully can we use a powerful model?</span></p></blockquote><p><span>ExtraTrees has a very different character from LightGBM.</span></p><p><span>ExtraTrees creates a large number of randomized trees and averages them.</span></p><p><span>Rather than making each individual tree excessively intelligent, it creates many trees with randomness and produces stable predictions by averaging them.</span></p><p><span>Therefore, with ExtraTrees, the important question was:</span></p><blockquote><p><span>How diversely can we create randomized trees, and how stably can we average them?</span></p></blockquote><p><span>To understand this difference, we have built up several series of posts so far.</span></p><p><span>First, as a &#8220;personality assessment&#8221; of LightGBM and ExtraTrees, we organized the fundamental differences between the two.</span></p><p><span>Resistance to overfitting.<br>Ease of hyperparameter tuning.<br>Training efficiency.<br>Inference speed.<br>Robustness to outliers.<br>Robustness to noisy targets.<br>Ability to handle interactions among features.<br>Ability to handle multicollinearity.<br>Suitability for small-cap stocks and the S&amp;P 500.<br>Suitability for short-term and long-term returns.<br>Behavior as the number of features increases.<br>Ability to distinguish between improvement and deterioration.<br>Response to analyst estimate revisions and surprises.</span></p><p><span>From these perspectives, we examined the differences between LightGBM and ExtraTrees.</span></p><p><span>Next, in the section on interpreting results, we organized how model results should be read.</span></p><p><span>RMSE, Pearson, Spearman.<br>Avg%(H-L).<br>Feature Importance.<br>SD.<br>Turn%.<br>Return curves.<br>What it means for a model to withstand the test of time.</span></p><p><span>In financial ML, a model is not necessarily good simply because it has a small prediction error.</span></p><p><span>Particularly in investment models, how well the model can rank stocks may be more important than the absolute values of its predictions.</span></p><p><span>The difference between the top and bottom groups, the stability of the return curve, Turn%, variation across folds, and the stability of Feature Importance are also important.</span></p><p><span>Therefore, in the section on interpreting results, we established the following perspective:</span></p><blockquote><p><span>Evaluating model performance does not mean looking at a single score. It means comprehensively examining prediction, ranking, portfolio performance, and stability over time.</span></p></blockquote><p><span>Furthermore, in the section on visualizing the learning process, we looked more structurally at how LightGBM and ExtraTrees learn.</span></p><p><span>With LightGBM, trees are added sequentially, with each new tree correcting errors left by the preceding trees.</span></p><p><span>Therefore, the progression of training, early stopping, best_iteration, and the optimal number of trees for each fold become important.</span></p><p><span>With ExtraTrees, many randomized trees are built independently, and the prediction is determined by averaging them.</span></p><p><span>Therefore, rather than focusing on what a single tree learned, what matters is how stable the aggregate prediction becomes when many trees are averaged.</span></p><p><span>In the validation section, we also organized the role of CV, or cross-validation.</span></p><p><span>Validation is not where the model is updated.</span></p><p><span>Validation is:</span></p><blockquote><p><span>A place to check how resistant the model is to breaking down when confronted with unseen data.</span></p></blockquote><p><span>Particularly in financial ML, there are time structures, regime changes, target noise, changes in the cross-section, differences in the universe, and other complications, so simple validation may not be sufficient.</span></p><p><span>Validation is necessary not only for measuring model performance, but also for understanding model flexibility, overfitting, parameter selection, early stopping, and the meaning of the number of folds.</span></p><p><span>Then, in the immediately preceding prior part, we covered hyperparameters in detail for LightGBM and ExtraTrees.</span></p><p><span>For LightGBM, we examined:</span></p><ul><li><p><span>learning_rate</span></p></li><li><p><span>n_estimators</span></p></li><li><p><span>early stopping</span></p></li><li><p><span>num_leaves</span></p></li><li><p><span>max_depth</span></p></li><li><p><span>min_child_samples</span></p></li><li><p><span>feature_fraction</span></p></li><li><p><span>bagging_fraction</span></p></li><li><p><span>bagging_freq</span></p></li><li><p><span>lambda_l1</span></p></li><li><p><span>lambda_l2</span></p></li><li><p><span>min_gain_to_split</span></p></li></ul><p><span>For ExtraTrees, we examined:</span></p><ul><li><p><span>n_estimators</span></p></li><li><p><span>max_features</span></p></li><li><p><span>max_depth</span></p></li><li><p><span>min_samples_leaf</span></p></li><li><p><span>min_samples_split</span></p></li><li><p><span>bootstrap</span></p></li><li><p><span>max_samples</span></p></li><li><p><span>random_state</span></p></li></ul><p><span>The central message of the prior part was clear.</span></p><blockquote><p><span>Hyperparameter tuning is not the task of finding the settings that produce the highest score on historical data.<br>In financial ML, it is the task of controlling the model&#8217;s learning flexibility so that it does not overreact to market noise.</span></p></blockquote><p><span>With LightGBM, the key was how much to restrain a powerful model.</span></p><p><span>With ExtraTrees, the key was how stably to average randomized trees.</span></p><p><span>And at the end of prior part, we arrived at the following important perspective:</span></p><blockquote><p><span>Features are the information given to the model.<br>Hyperparameters are the rules that determine how the model handles that information.</span></p></blockquote><p><span>Even with the same features, LightGBM and ExtraTrees use them differently.</span></p><p><span>Even within LightGBM, if num_leaves, min_child_samples, and feature_fraction differ, the meaning of those features changes.</span></p><p><span>Even within ExtraTrees, if max_features, min_samples_leaf, and bootstrap differ, the way those features are used changes.</span></p><p><span>Therefore, when thinking about features, it is not enough to ask:</span></p><blockquote><p><span>Is this feature good or bad?</span></p></blockquote><p><span>What we really need to examine is:</span></p><blockquote><p><span>Which model is using this feature, with what degree of flexibility, and under what market environment?</span></p></blockquote><p><strong><span>Now, we finally enter the &#8220;feature&#8221; section.</span></strong></p><div><hr></div><h2><strong><span>(2) The Role of This part</span></strong></h2><p><span>This part covers feature design in financial ML.</span></p><p><span>This is one of the most important parts of this series.</span></p><p><span>That is because no matter how good the model is, there is a limit to what it can achieve if the features are weak.</span></p><p><span>Conversely, even if you have excellent features, if the model has too much flexibility, it will overfit historical data.</span></p><p><span>Models and features cannot be considered separately.</span></p><p><span>Features are information passed to the model.</span></p><p><span>The model uses that information to rank stocks and attempt to predict future returns.</span></p><p><span>But the model does not create alpha out of nothing.</span></p><p><span>Based on the information supplied as features, the model judges which stocks may perform well in the future and which may perform poorly.</span></p><p><span>Therefore, features are not merely columns of data.</span></p><p><span>A feature is:</span></p><blockquote><p><span>An investment hypothesis passed to the model.</span></p></blockquote><p><span>Including ROE as a feature means giving the model the hypothesis:</span></p><blockquote><p><span>Companies with high profitability may have some relevance to future returns.</span></p></blockquote><p><span>Including P/E as a feature means giving the model the hypothesis:</span></p><blockquote><p><span>Stocks that appear inexpensive may have some relevance to future returns.</span></p></blockquote><p><span>Including sales growth means giving the model the hypothesis:</span></p><blockquote><p><span>Growing companies may have some relevance to future returns.</span></p></blockquote><p><span>Including analyst estimate revisions means giving the model the hypothesis:</span></p><blockquote><p><span>Changes in market participants&#8217; expectations may affect future returns.</span></p></blockquote><p><span>Including momentum means giving the model the hypothesis:</span></p><blockquote><p><span>Price trends and market reactions may persist into the future.</span></p></blockquote><p><span>Including volatility means giving the model the hypothesis:</span></p><blockquote><p><span>The magnitude of a stock&#8217;s risk and the instability of its price movements may be related to the reliability of predictions.</span></p></blockquote><p><span>Including liquidity means giving the model the hypothesis:</span></p><blockquote><p><span>How easily a stock can be traded, and its supply-demand risk, may be related to investability and the reproducibility of returns.</span></p></blockquote><p><span>In this way, every feature is an investment hypothesis.</span></p><p><span>The model does not automatically validate those hypotheses for us.</span></p><p><span>The model learns patterns among the supplied features that appear useful for prediction in historical data.</span></p><p><span>The problem is whether those patterns will continue to have meaning in the future.</span></p><p><span>This is where the difficulty of financial ML lies.<br><br></span></p><div><hr></div><h2><strong><span>(3) Overall Structure of This part</span></strong></h2><p><span>This part is planned to proceed through five major chapters.</span></p><p><span>Feature Design in Financial ML</span></p><p><span>Chapter 1: Alpha Factors</span></p><p><span>Chapter 2: Risk Factors</span></p><p><span>Chapter 3: Feature Engineering</span></p><p><span>Chapter 4: Feature Usage by Model</span></p><p><span>Chapter 5: Feature Importance / Feature Selection</span></p><p><span>The number of posts will not be strictly limited from the outset.</span></p><p><span>Rather, because feature design is one of the climaxes of this series, I intend to cover it in as much detail as necessary.</span></p><p><span>At present, I expect it to consist of more than 50 posts.</span></p><p><span>That may sound long.</span></p><p><span>However, if we are serious about feature design in financial ML, that much material is necessary.</span></p><p><span>That is because feature design is not simply a question of &#8220;which factors should we include?&#8221;</span></p><p><span>Feature design includes at least the following elements:</span></p><ul><li><p><span>Investment hypotheses</span></p></li><li><p><span>Factor classification</span></p></li><li><p><span>Correlations among factors</span></p></li><li><p><span>Compatibility among factors</span></p></li><li><p><span>Redundant features</span></p></li><li><p><span>Complementary features</span></p></li><li><p><span>Levels, differences, and rates of change</span></p></li><li><p><span>Ranking</span></p></li><li><p><span>Standardization</span></p></li><li><p><span>Winsorization</span></p></li><li><p><span>Sector neutralization</span></p></li><li><p><span>Missing-value handling</span></p></li><li><p><span>Outlier handling</span></p></li><li><p><span>Differences between small-cap and large-cap stocks</span></p></li><li><p><span>Differences between short-term and long-term targets</span></p></li><li><p><span>How features are used by different models</span></p></li><li><p><span>LightGBM conditional splits</span></p></li><li><p><span>Averaging of randomized trees in ExtraTrees</span></p></li><li><p><span>How to interpret Feature Importance</span></p></li><li><p><span>Feature selection</span></p></li><li><p><span>Feature removal</span></p></li><li><p><span>Evaluation by feature group</span></p></li><li><p><span>Liquidity, Turn%, and transaction costs in actual implementation</span></p></li></ul><p><span>To cover all of these together requires a certain amount of length.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!1SLp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!1SLp!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png 424w, /__u/substackcdn.com/image/fetch/$s_!1SLp!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png 848w, /__u/substackcdn.com/image/fetch/$s_!1SLp!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png 1272w, /__u/substackcdn.com/image/fetch/$s_!1SLp!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!1SLp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png" width="1178" height="1190" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1190,&quot;width&quot;:1178,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:152446,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/212980728?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!1SLp!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png 424w, /__u/substackcdn.com/image/fetch/$s_!1SLp!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png 848w, /__u/substackcdn.com/image/fetch/$s_!1SLp!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png 1272w, /__u/substackcdn.com/image/fetch/$s_!1SLp!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb865c1a9-c0ee-4d18-a662-0cd84b2eb443_1178x1190.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) Introduction: We Finally Enter the Feature Section<br>(2) The Role of This part<br>(3) Overall Structure of This part<br><br>&#65288;Paid Section)<br>(4) Chapter 1: Alpha Factors<br>(5) Chapter 2: Risk Factors<br>(6) Chapter 3: Feature Engineering<br>(7) Chapter 4: Feature Usage by Model<br>(8) Chapter 5: Feature Importance / Feature Selection<br>(9) Features Are Not &#8220;Data&#8221;<br>(10) A Model Cannot Create Alpha Without Features<br>(11) What Is a Good Feature?<br>(12) Features That Work Individually and Features That Work in Combination<br>(13) Alpha Factors and Risk Factors<br>(14) The Meaning of a Feature Changes Depending on the Model<br>(15) The Same Feature Changes Meaning Depending on the Universe<br>(16) The Same Feature Changes Meaning Depending on the Target Horizon<br>(17) The Risk of Increasing the Number of Features<br>(18) Feature Design Is the Intersection of ML and Domain Knowledge<br>(19) Summary of This post</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/feature-design-in-financial-ml-1">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Understanding Model Personality Through Hyperparameters #10: Practical Tuning Order — What Should We Adjust First in Financial ML?]]></title><description><![CDATA[Deep insights into the hyperparameters of LightGBM and Extra Trees based on the tuning order]]></description><link>https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-b5f</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-b5f</guid><pubDate>Tue, 25 Aug 2026 12:01:30 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Us_u!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>#10: Practical Tuning Order &#8212; What Should We Adjust First in Financial ML?</strong></h1><h2><span>(1) Introduction</span></h2><p><span>So far in Part 5, we have looked at the hyperparameters of LightGBM and ExtraTrees in sequence.</span></p><p><span>In post 1, we organized hyperparameter tuning not simply as &#8220;performance improvement,&#8221; but as:</span></p><blockquote><p><span>Controlling the model&#8217;s degree of freedom so that it does not overreact to market noise.</span></p></blockquote><p><span>For LightGBM, the important question was:</span></p><blockquote><p><span>How cautiously should we make a strong model learn?</span></p></blockquote><p><span>For ExtraTrees, the important question was:</span></p><blockquote><p><span>How diversely should we create random trees, and how stably should we average them?</span></p></blockquote><p><span>From post 2 to post 7, we looked at LightGBM&#8217;s major parameters.</span></p><ul><li><p><span>learning_rate</span></p></li><li><p><span>n_estimators</span></p></li><li><p><span>early stopping</span></p></li><li><p><span>num_leaves</span></p></li><li><p><span>max_depth</span></p></li><li><p><span>min_child_samples</span></p></li><li><p><span>feature_fraction</span></p></li><li><p><span>bagging_fraction</span></p></li><li><p><span>bagging_freq</span></p></li><li><p><span>lambda_l1</span></p></li><li><p><span>lambda_l2</span></p></li><li><p><span>min_gain_to_split</span></p></li></ul><p><span>In post 3, post 8, and post 9, we looked at ExtraTrees&#8217; major parameters.</span></p><ul><li><p><span>n_estimators</span></p></li><li><p><span>max_features</span></p></li><li><p><span>max_depth</span></p></li><li><p><span>min_samples_leaf</span></p></li><li><p><span>min_samples_split</span></p></li><li><p><span>bootstrap</span></p></li><li><p><span>max_samples</span></p></li><li><p><span>random_state</span></p></li></ul><p><span>This post is the summary of Part 5.</span></p><p><span>The theme is:</span></p><blockquote><p><span>When actually tuning a financial ML model, what should we adjust first?</span></p></blockquote><p><span>Not all hyperparameters have the same importance.</span></p><p><span>Parameters that should be examined first.<br>Parameters that should be examined later.<br>Parameters that greatly change the model&#8217;s personality.<br>Parameters that are closer to fine-tuning.<br>Parameters that matter when the data is noisy.<br>Parameters that matter when there are many features.<br>Parameters that require caution in small caps.<br>Parameters that require caution in the S&amp;P 500.</span></p><p><span>If these are not organized, tuning quickly becomes a maze.</span></p><p><span>In this post, we will organize a practical tuning order for both LightGBM and ExtraTrees.</span></p><div><hr></div><h2><span>(2) First Premise: Hyperparameters Are Not About &#8220;Searching for the Highest Point&#8221;</span></h2><p><span>First, let&#8217;s confirm an important premise once again.</span></p><p><span>Hyperparameter tuning in financial ML is not:</span></p><blockquote><p><span>The task of finding the setting that produces the highest score on past data.</span></p></blockquote><p><span>Of course, scores are important.</span></p><p><span>We look at RMSE, Pearson, Spearman, Avg%(H-L), top-group returns, return curves, Turn%, and Feature Importance stability.</span></p><p><span>However, what truly matters in financial ML is not:</span></p><blockquote><p><span>A model that is slightly good in the past,</span></p></blockquote><p><span>but:</span></p><blockquote><p><span>A model that is hard to break in the future.</span></p></blockquote><p><span>A setting that produces the highest CV score on past data does not necessarily remain strong in the future.</span></p><p><span>Rather, in financial data, settings that look too good in the past can often be weak in the future.</span></p><p><span>That is because past data contains a lot of noise.</span></p><p><span>Short-term returns.<br>Small caps.<br>Outliers.<br>Missing values.<br>Regime changes.<br>Temporary theme markets.<br>Macro factors.<br>Features that worked only during a specific period.</span></p><p><span>When a model fits too sharply to data containing these things, it learns historical coincidences.</span></p><p><span>Therefore, in tuning, the important mindset is not:</span></p><blockquote><p><span>Search for the highest value,</span></p></blockquote><p><span>but:</span></p><blockquote><p><span>Search for a stable usable range.</span></p></blockquote><p><span>This is the central theme running through all of this Part 5.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Us_u!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Us_u!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png 424w, /__u/substackcdn.com/image/fetch/$s_!Us_u!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png 848w, /__u/substackcdn.com/image/fetch/$s_!Us_u!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Us_u!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Us_u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png" width="1220" height="1854" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1854,&quot;width&quot;:1220,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:663187,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/211263045?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Us_u!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png 424w, /__u/substackcdn.com/image/fetch/$s_!Us_u!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png 848w, /__u/substackcdn.com/image/fetch/$s_!Us_u!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Us_u!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13311aba-32dc-4c0f-bb8d-599c1a4d1497_1220x1854.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br><span>(1) Introduction<br>(2) First Premise: Hyperparameters Are Not About &#8220;Searching for the Highest Point&#8221;</span><br><br>&#65288;Paid Section)<br><span>(3) LightGBM&#8217;s Tuning Philosophy<br>(4) What to Adjust First in LightGBM<br>(5) LightGBM Stage 2: Decide Tree Complexity<br>(6) LightGBM Stage 3: Examine Minimum Leaf Size<br>(7) LightGBM Stage 4: Examine Sampling<br>(8) LightGBM Stage 5: Finish With Regularization<br>(9) Practical Tuning Order for LightGBM<br>(10) ExtraTrees&#8217; Tuning Philosophy<br>(11) What to Adjust First in ExtraTrees<br>(12) ExtraTrees Stage 2: Examine Minimum Leaf Size<br>(13) ExtraTrees Stage 3: Examine Tree Depth<br>(14) ExtraTrees Stage 4: Examine min_samples_split<br>(15) ExtraTrees Stage 5: Examine bootstrap and max_samples<br>(16) Practical Tuning Order for ExtraTrees<br>(17) Priorities in Small-Cap Universes<br>(18) Priorities in the S&amp;P 500<br>(19) When the Number of Features Is Large<br>(20) When the Target Is Noisy<br>(21) For Medium- and Long-Term Targets<br>(22) Metrics to Check During Tuning<br>(23) What Is Good Tuning?<br>(24) The Final Difference Between LightGBM and ExtraTrees<br>(25) Initial Comparison Sets in Practice<br>(26) Cautions When Moving Parameters<br>(27) Summary of the Hyperparameter Section<br>(28) Next Step: Toward the Feature Section</span></p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-b5f">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Understanding Model Personality Through Hyperparameters #9: ExtraTrees Sampling and Randomness — bootstrap / max_samples / random_state]]></title><description><![CDATA[Deep insights into the hyperparameters of LightGBM and Extra Trees based on the tuning order]]></description><link>https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-b37</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-b37</guid><pubDate>Tue, 18 Aug 2026 12:02:14 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!aZJt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>ExtraTrees Sampling and Randomness &#8212; bootstrap / max_samples / random_state</strong></h1><h2><span>(1) Introduction</span></h2><p><span>In the previous post, we discussed max_depth, min_samples_leaf, and min_samples_split as parameters for controlling ExtraTrees complexity.</span></p><p><span>ExtraTrees is a model that creates many random trees and averages them.</span></p><p><span>Therefore, unlike LightGBM, it does not correct the errors of previous trees with the next tree.</span></p><p><span>However, that does not mean tree complexity can be ignored.</span></p><p><span>Trees that are too deep.<br>Leaves that are too small.<br>Too few trees.<br>Feature sampling that is too strong.<br>And results that change significantly just by changing random_state.</span></p><p><span>These things can make ExtraTrees unstable as well.</span></p><p><span>The key point of the previous post was:</span></p><blockquote><p><span>Use max_features to create diversity,<br>use n_estimators to strengthen averaging,<br>and use min_samples_leaf to prevent the trees from running too wild.</span></p></blockquote><p><span>This time, we will discuss parameters related to ExtraTrees sampling and randomness.</span></p><p><span>Specifically:</span></p><ul><li><p><span>bootstrap</span></p></li><li><p><span>max_samples</span></p></li><li><p><span>random_state</span></p></li></ul><p><span>ExtraTrees is already a model with strong randomness.</span></p><p><span>Therefore, the theme of this post is:</span></p><blockquote><p><span>How much additional randomness should we add to ExtraTrees?</span></p></blockquote><p><span>The especially important parameter is bootstrap.</span></p><p><span>In Random Forest, bootstrap is commonly used.<br>However, in ExtraTrees, the situation is slightly different.</span></p><p><span>ExtraTrees already has strong randomness in how splits are created.</span></p><p><span>Therefore, even without bootstrap, tree diversity is already created to some extent.</span></p><p><span>So what does it mean to use bootstrap in ExtraTrees?<br>What does it mean to limit the number of samples shown to each tree with max_samples?<br>Is random_state merely a setting for reproducibility?</span></p><p><span>In this post, we will organize these points.</span></p><div><hr></div><h2><span>(2) ExtraTrees Is Already a Random Model</span></h2><p><span>First, let&#8217;s review the basic idea of ExtraTrees.</span></p><p><span>ExtraTrees is short for Extremely Randomized Trees.</span></p><p><span>As the name suggests, it creates many highly randomized trees and averages them.</span></p><p><span>An ordinary decision tree searches for the best threshold at each split.<br>Random Forest also searches for relatively good splits while considering only part of the features.</span></p><p><span>On the other hand, ExtraTrees introduces stronger randomness into how split candidates and thresholds are chosen.</span></p><p><span>Therefore, each individual tree does not necessarily create optimal splits.</span></p><p><span>Rather, by deliberately increasing randomness, the model creates diverse trees.</span></p><p><span>Then, by averaging those diverse trees, it creates stability.</span></p><p><span>This is the important personality of ExtraTrees.</span></p><blockquote><p><span>Instead of making one tree too smart,<br>create many random trees and average them to stabilize the model.</span></p></blockquote><p><span>For this reason, in ExtraTrees, randomness is not a weakness.</span></p><p><span>Rather, it is a central design principle of the model.</span></p><p><span>However, randomness is not something where more is always better.</span></p><p><span>If randomness is too weak, the trees become too similar and the effect of averaging weakens.<br>If randomness is too strong, each individual tree becomes too weak, and the overall model also becomes unstable.</span></p><p><span>The bootstrap and max_samples parameters that we will discuss this time are parameters for extending this randomness further in the sample direction.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!aZJt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!aZJt!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png 424w, /__u/substackcdn.com/image/fetch/$s_!aZJt!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png 848w, /__u/substackcdn.com/image/fetch/$s_!aZJt!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png 1272w, /__u/substackcdn.com/image/fetch/$s_!aZJt!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!aZJt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png" width="1242" height="1538" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1538,&quot;width&quot;:1242,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:552087,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/211035179?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!aZJt!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png 424w, /__u/substackcdn.com/image/fetch/$s_!aZJt!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png 848w, /__u/substackcdn.com/image/fetch/$s_!aZJt!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png 1272w, /__u/substackcdn.com/image/fetch/$s_!aZJt!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0797886-83a5-4da9-b336-3267d2a9963c_1242x1538.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) Introduction<br>(2) ExtraTrees Is Already a Random Model<br><br>&#65288;Paid Section)<br>(3) What Is bootstrap?<br>(4) When bootstrap Is Not Used<br>(5) When bootstrap Is Used<br>(6) The Meaning of bootstrap Is Different in Random Forest and ExtraTrees<br>(7) What Is max_samples?<br>(8) When max_samples Is Large<br>(9) When max_samples Is Small<br>(10) bootstrap and max_samples Should Be Considered Together<br>(11) What Is random_state?<br>(12) random_state Is Not Only About Reproducibility<br>(13) What to Do When Dependence on random_state Is Strong<br>(14) Does bootstrap Suppress Overfitting?<br>(15) About OOB Score<br>(16) Thinking About Small-Cap Universes<br>(17) Thinking About the S&amp;P 500<br>(18) Relationship With Target Horizon<br>(19) When the Number of Features Is Large<br>(20) Concrete Setting Examples<br>(21) What to Check When Using bootstrap<br>(22) What to Check When Changing max_samples<br>(23) What to Check When Changing random_state<br>(24) Common Ways to Read the Results<br>(25) Summary</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-b37">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Understanding Model Personality Through Hyperparameters #8: Controlling ExtraTrees Complexity — max_depth / min_samples_leaf / min_samples_split]]></title><description><![CDATA[Deep insights into the hyperparameters of LightGBM and Extra Trees based on the tuning order]]></description><link>https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-313</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-313</guid><pubDate>Tue, 11 Aug 2026 12:01:04 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Evi9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>Controlling ExtraTrees Complexity &#8212; max_depth / min_samples_leaf / min_samples_split</strong></h1><h2><span>(1) Introduction</span></h2><p><span>In the previous post, we discussed LightGBM&#8217;s regularization-related parameters: lambda_l1, lambda_l2, and min_gain_to_split.</span></p><p><span>LightGBM is a very sharp model.</span></p><p><span>It has a strong ability to find complex patterns in past data, but at the same time, it also carries the risk of capturing detailed noise in past data.</span></p><p><span>Therefore, in the previous post, we examined regularization from the perspective of:</span></p><blockquote><p><span>Preventing leaf prediction values from becoming too extreme<br>Preventing the model from creating splits for improvements that are too small</span></p></blockquote><p><span>This time, we return to ExtraTrees.</span></p><p><span>In post 3, we discussed n_estimators and max_features as the first step in ExtraTrees.</span></p><p><span>ExtraTrees is a model that creates many random trees and averages them.</span></p><p><span>Therefore, the first important questions were:</span></p><blockquote><p><span>How many trees should we create?<br>How many different features should each tree be allowed to see?</span></p></blockquote><p><span>n_estimators was the parameter that determines the amount of averaging.<br>max_features was the parameter that determines tree diversity.</span></p><p><span>This time, we will discuss parameters that control the complexity of the ExtraTrees trees themselves.</span></p><p><span>Specifically:</span></p><ul><li><p><span>max_depth</span></p></li><li><p><span>min_samples_leaf</span></p></li><li><p><span>min_samples_split</span></p></li></ul><p><span>In LightGBM, we controlled tree complexity and minimum leaf size using num_leaves, max_depth, and min_child_samples.</span></p><p><span>ExtraTrees has similar ideas as well.</span></p><p><span>However, ExtraTrees has a different learning mechanism from LightGBM.</span></p><p><span>LightGBM is a sequential learning model where the next tree corrects the errors of the previous trees.<br>ExtraTrees is a model that creates many random trees and averages them.</span></p><p><span>Therefore, controlling complexity in ExtraTrees is less about:</span></p><blockquote><p><span>Where to stop a strong model</span></p></blockquote><p><span>and more about:</span></p><blockquote><p><span>How far to let random trees run wild<br>and how far to stabilize that wildness through averaging.</span></p></blockquote><div><hr></div><h2><span>(2) What Does &#8220;Complexity&#8221; Mean in ExtraTrees?</span></h2><p><span>ExtraTrees is also a model that uses decision trees.</span></p><p><span>Decision trees split data using features.</span></p><p><span>For example, they can divide stocks using conditions such as:</span></p><blockquote><p><span>Is ROE high or low?<br>Is PER low or high?<br>Is momentum strong or weak?<br>Have analyst estimates been revised upward?<br>Is market capitalization large or small?<br>Is volatility high or low?</span></p></blockquote><p><span>By layering these splits, stocks are divided into more detailed groups.</span></p><p><span>The deeper a tree becomes, the longer the chain of conditions it can create.</span></p><p><span>The smaller the leaves become, the more the prediction is based on a small number of stocks.</span></p><p><span>In this respect, ExtraTrees is similar to LightGBM.</span></p><p><span>However, ExtraTrees has one major characteristic.</span></p><p><span>Its splitting process contains strong randomness.</span></p><p><span>In ExtraTrees, splits are created in an even more randomized way than in ordinary decision trees or Random Forests.</span></p><p><span>Because of this randomness, each individual tree becomes quite unstable.</span></p><p><span>However, by creating many trees and averaging them, the instability of individual trees is smoothed out.</span></p><p><span>In other words, when thinking about ExtraTrees complexity, we should not look at only one tree.</span></p><p><span>What matters is:</span></p><blockquote><p><span>How freely each individual tree is allowed to grow<br>and how many of those free trees are averaged.</span></p></blockquote><p><span>The n_estimators and max_features that we discussed in post 3 were mainly related to the latter: averaging and diversity.</span></p><p><span>The max_depth, min_samples_leaf, and min_samples_split that we will discuss this time are mainly parameters that control the former: how wildly each individual tree is allowed to behave.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Evi9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Evi9!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png 424w, /__u/substackcdn.com/image/fetch/$s_!Evi9!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png 848w, /__u/substackcdn.com/image/fetch/$s_!Evi9!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Evi9!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Evi9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png" width="1232" height="1408" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1408,&quot;width&quot;:1232,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:474192,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/210733828?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Evi9!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png 424w, /__u/substackcdn.com/image/fetch/$s_!Evi9!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png 848w, /__u/substackcdn.com/image/fetch/$s_!Evi9!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Evi9!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f968f7d-fef1-4174-bf57-f36f863f2e20_1232x1408.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) Introduction<br>(2) What Does &#8220;Complexity&#8221; Mean in ExtraTrees?<br><br>&#65288;Paid Section)<br>(3) What Is max_depth?<br>(4) Benefits of Making max_depth Deeper<br>(5) Risks of Making max_depth Too Deep<br>(6) Benefits and Risks of Making max_depth Shallow<br>(7) What Is min_samples_leaf?<br>(8) When min_samples_leaf Is Small<br>(9) When min_samples_leaf Is Large<br>(10) min_samples_leaf Is Especially Important in ExtraTrees<br>(11) What Is min_samples_split?<br>(12) The Difference Between min_samples_leaf and min_samples_split<br>(13) Relationship Between max_depth and min_samples_leaf<br>(14) Relationship With max_features<br>(15) Relationship With n_estimators<br>(16) Thinking About Small-Cap Universes<br>(17) Thinking About the S&amp;P 500<br>(18) Relationship With Target Horizon<br>(19) When the Number of Features Is Large<br>(20) Concrete Setting Examples<br>(21) What to Check When Increasing min_samples_leaf<br>(22) What to Check When Limiting max_depth<br>(23) What to Check When Adjusting min_samples_split<br>(24) Impact on Feature Importance<br>(25) Relationship With random_state<br>(26) Common Ways to Read the Results<br>(27) Summary</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-313">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Understanding Model Personality Through Hyperparameters #7: LightGBM Regularization — lambda_l1 / lambda_l2 / min_gain_to_split]]></title><description><![CDATA[Deep insights into the hyperparameters of LightGBM and Extra Trees based on the tuning order]]></description><link>https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-ca0</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-ca0</guid><pubDate>Tue, 04 Aug 2026 12:02:15 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!gR1x!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>LightGBM Regularization &#8212; lambda_l1 / lambda_l2 / min_gain_to_split</strong></h1><h2><span>(1) Introduction</span></h2><p><span>In the previous post, we discussed LightGBM&#8217;s sampling-related parameters: feature_fraction, bagging_fraction, and bagging_freq.</span></p><p><span>feature_fraction was sampling in the feature direction.</span></p><p><span>In other words, it was the parameter that determines:</span></p><blockquote><p><span>How much of the full feature set each tree is allowed to see.</span></p></blockquote><p><span>On the other hand, bagging_fraction was sampling in the sample direction.</span></p><p><span>In other words, it was the parameter that determines:</span></p><blockquote><p><span>How much of the full sample set each tree is allowed to see.</span></p></blockquote><p><span>The key point of the previous post was that showing LightGBM all information every time is not necessarily good.</span></p><p><span>In financial ML, showing all features, all stocks, and all periods every time can cause the model to fit too strongly to coincidences in past data.</span></p><p><span>Therefore, we introduced a little randomness through sampling and organized the idea of suppressing excessive dependence on:</span></p><blockquote><p><span>Specific features<br>Specific groups of stocks<br>Specific periods<br>Specific market regimes</span></p></blockquote><p><span>This time, we will discuss LightGBM&#8217;s regularization-related parameters.</span></p><p><span>Specifically:</span></p><ul><li><p><span>lambda_l1</span></p></li><li><p><span>lambda_l2</span></p></li><li><p><span>reg_alpha</span></p></li><li><p><span>reg_lambda</span></p></li><li><p><span>min_gain_to_split</span></p></li></ul><p><span>lambda_l1 and reg_alpha are basically parameters in the same direction.<br>lambda_l2 and reg_lambda are also basically parameters in the same direction.</span></p><p><span>The theme of this post can be summarized as:</span></p><blockquote><p><span>Directly applying brakes so that the model does not create overly detailed splits or extreme prediction values.</span></p></blockquote><p><span>Compared with the parameters we have discussed so far, regularization is a little harder to see intuitively.</span></p><p><span>Unlike learning_rate or num_leaves, it is not immediately obvious as &#8220;learning speed&#8221; or &#8220;tree complexity.&#8221;</span></p><p><span>However, in financial ML, regularization is also extremely important.</span></p><p><span>That is because LightGBM is a model that can fit very sharply to past data.</span></p><p><span>A strong ability to find detailed patterns in past data also means a strong ability to find detailed noise in past data.</span></p><p><span>Regularization is a mechanism for asking this sharp model:</span></p><blockquote><p><span>Is it really worth reacting that finely?</span></p></blockquote><div><hr></div><h2><span>(2) What Is Regularization?</span></h2><p><span>First, let&#8217;s briefly organize what regularization means.</span></p><p><span>In machine learning, regularization means adding constraints so that the model does not become too complex.</span></p><p><span>A model tries to make predictions that are as good as possible on the training data.</span></p><p><span>However, training data contains noise.</span></p><p><span>Therefore, if we give the model too much freedom, it will learn not only the general patterns it should learn, but also the noise that happened to exist in the training data.</span></p><p><span>This is overfitting.</span></p><p><span>Regularization is used to suppress this overfitting.</span></p><p><span>Intuitively, it is like saying to the model:</span></p><blockquote><p><span>You may do something complex.<br>But if you do, you must pay a penalty.</span></p></blockquote><p><span>It does not completely prohibit the model from making complex predictions, producing extreme values, or creating detailed splits.</span></p><p><span>However, it asks:</span></p><blockquote><p><span>Is there enough reason to do that?</span></p></blockquote><p><span>In financial ML, this attitude is extremely important.</span></p><p><span>That is because a split or prediction value that slightly improves the score on past data does not necessarily have meaning in the future.</span></p><p><span>Regularization is a brake against overly detailed fitting to past data.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!gR1x!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!gR1x!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png 424w, /__u/substackcdn.com/image/fetch/$s_!gR1x!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png 848w, /__u/substackcdn.com/image/fetch/$s_!gR1x!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png 1272w, /__u/substackcdn.com/image/fetch/$s_!gR1x!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!gR1x!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png" width="1252" height="1362" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1362,&quot;width&quot;:1252,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:502918,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/207873455?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!gR1x!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png 424w, /__u/substackcdn.com/image/fetch/$s_!gR1x!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png 848w, /__u/substackcdn.com/image/fetch/$s_!gR1x!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png 1272w, /__u/substackcdn.com/image/fetch/$s_!gR1x!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90711285-291b-4d66-a559-ad38198dbeaf_1252x1362.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) Introduction<br>(2) What Is Regularization?<br><br>&#65288;Paid Section)<br>(3) The Role of Regularization in LightGBM<br>(4) What Is lambda_l1?<br>(5) What Is lambda_l2?<br>(6) The Difference Between lambda_l1 and lambda_l2<br>(7) What Is min_gain_to_split?<br>(8) min_gain_to_split Asks &#8220;Is This Split Worth It?&#8221;<br>(9) The Difference Between Lambda Regularization and min_gain_to_split<br>(10) Typical Situations Where Regularization Becomes Necessary<br>(11) The Risk of Making Regularization Too Strong<br>(12) Why Regularization Is Important in Financial ML<br>(13) Thinking About Small-Cap Universes<br>(14) Thinking About the S&amp;P 500<br>(15) Relationship With Target Horizon<br>(16) When the Number of Features Is Large<br>(17) Concrete Setting Examples<br>(18) What to Check When Increasing lambda_l2<br>(19) What to Check When Increasing lambda_l1<br>(20) What to Check When Increasing min_gain_to_split<br>(21) Impact on best_iteration<br>(22) Practical Tuning Order<br>(23) Common Ways to Read the Results<br>(24) Summary</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-ca0">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Understanding Model Personality Through Hyperparameters #6: LightGBM Sampling — feature_fraction and bagging_fraction]]></title><description><![CDATA[Deep insights into the hyperparameters of LightGBM and Extra Trees based on the tuning order]]></description><link>https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-6d3</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-6d3</guid><pubDate>Tue, 28 Jul 2026 12:01:54 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!h8C2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>LightGBM Sampling &#8212; feature_fraction and bagging_fraction</strong></h1><h2>(1) Introduction</h2><p><span>In the previous post, we discussed min_child_samples, also known as min_data_in_leaf, as an extremely important parameter for controlling overfitting in LightGBM.</span></p><p><span>min_child_samples was the parameter that determines the minimum number of samples required in one leaf.</span></p><p><span>If num_leaves and max_depth, which we discussed two posts ago, determine:</span></p><blockquote><p><span>How finely the model is allowed to split,</span></p></blockquote><p><span>then min_child_samples determines:</span></p><blockquote><p><span>How much evidence is required at minimum in each detailed group.</span></p></blockquote><p><span>This time, we will discuss LightGBM&#8217;s sampling-related parameters.</span></p><p><span>Specifically:</span></p><ul><li><p><span>feature_fraction</span></p></li><li><p><span>colsample_bytree</span></p></li><li><p><span>bagging_fraction</span></p></li><li><p><span>subsample</span></p></li><li><p><span>bagging_freq</span></p></li></ul><p><span>Among these, feature_fraction and colsample_bytree mainly refer to sampling in the feature direction.</span></p><p><span>On the other hand, bagging_fraction and subsample mainly refer to sampling in the data direction, meaning sample-level sampling.<br>And in LightGBM, when using bagging_fraction, bagging_freq also becomes important.</span></p><p><span>The theme of this post can be summarized as:</span></p><blockquote><p><span>Should we show the model all information every time?<br>Or should we deliberately show only part of the information?</span></p></blockquote><p><span>Intuitively, it may seem better to show all information.</span></p><p><span>Using all features and all stocks and periods for training appears to give the model more information.</span></p><p><span>However, in financial ML, that is not always the case.</span></p><p><span>By showing everything, the model may fit too strongly to coincidences in past data.</span></p><p><span>Conversely, by training the model with only part of the features or part of the samples, we may be able to prevent it from depending too heavily on specific features or specific periods.</span></p><p><span>Sampling is not about throwing data away.</span></p><p><span>In financial ML, sampling is better understood as:</span></p><blockquote><p><span>A mechanism for preventing the model from trusting past data too much.</span></p></blockquote><div><hr></div><h2><span>(2) What Is Sampling in LightGBM?</span></h2><p><span>LightGBM is a very powerful model.</span></p><p><span>If there is a strong feature, it finds and uses it.<br>If there is a complex interaction, it tries to capture it.<br>If there is a split that improves performance on past data, it actively uses it.</span></p><p><span>This is a strength.</span></p><p><span>However, in financial ML, this strength also becomes a risk.</span></p><p><span>That is because past data contains a huge amount of noise.</span></p><p><span>For example, suppose a certain feature worked very strongly during one specific period.</span></p><p><span>That feature may truly be an investment signal that remains effective in the future.<br>However, it may simply have matched the market regime of that period.</span></p><p><span>If we show LightGBM all features every time, the model may become heavily dependent on that strong feature.</span></p><p><span>Also, suppose that a specific group of stocks rose significantly in one period.</span></p><p><span>If that is a reproducible pattern, that is fine.<br>But it may have been caused by individual news, liquidity, themes, the macro environment, or simple coincidence.</span></p><p><span>If we show LightGBM all samples every time, the model may react strongly to that period or that group of stocks.</span></p><p><span>This is where sampling comes in.</span></p><p><span>Sampling means limiting the features or samples used during training to only a subset.</span></p><p><span>In feature-direction sampling, instead of using all features every time, the model uses only some features.</span></p><p><span>In sample-direction sampling, instead of using all data rows every time, the model uses only some rows.</span></p><p><span>This introduces a little randomness into the model.</span></p><p><span>The purpose is:</span></p><blockquote><p><span>To prevent the model from depending too heavily on specific features or specific samples.</span></p></blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!h8C2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!h8C2!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png 424w, /__u/substackcdn.com/image/fetch/$s_!h8C2!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png 848w, /__u/substackcdn.com/image/fetch/$s_!h8C2!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png 1272w, /__u/substackcdn.com/image/fetch/$s_!h8C2!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!h8C2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png" width="1364" height="1500" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1500,&quot;width&quot;:1364,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:576332,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/207863219?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!h8C2!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png 424w, /__u/substackcdn.com/image/fetch/$s_!h8C2!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png 848w, /__u/substackcdn.com/image/fetch/$s_!h8C2!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png 1272w, /__u/substackcdn.com/image/fetch/$s_!h8C2!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7657fd7e-6bf5-41ea-8c6f-f494f6b055c2_1364x1500.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) Introduction<br>(2) What Is Sampling in LightGBM?<br><br>&#65288;Paid Section)<br>(3) What Is feature_fraction?<br>(4) When feature_fraction Is Large<br>(5) When feature_fraction Is Small<br>(6) feature_fraction Is a Bridge to the Feature Section<br>(7) Multicollinearity and feature_fraction<br>(8) What Is bagging_fraction?<br>(9) Why bagging_freq Is Important<br>(10) When bagging_fraction Is Large<br>(11) When bagging_fraction Is Small<br>(12) The Difference Between feature_fraction and bagging_fraction<br>(13) What Happens When We Use Both?<br>(14) Why Sampling Matters in Financial ML<br>(15) Thinking About Small-Cap Universes<br>(16) Thinking About the S&amp;P 500<br>(17) Relationship With Target Horizon<br>(18) Concrete Setting Examples<br>(19) What to Check When Lowering feature_fraction<br>(20) What to Check When Lowering bagging_fraction<br>(21) Sampling and How to Read Feature Importance<br>(22) Sampling and Turn%<br>(23) Common Ways to Read the Results<br>(24) Summary</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-6d3">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Understanding Model Personality Through Hyperparameters #5: Minimum Leaf Size in LightGBM — min_child_samples / min_data_in_leaf]]></title><description><![CDATA[Deep insights into the hyperparameters of LightGBM and Extra Trees based on the tuning order]]></description><link>https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-179</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-179</guid><pubDate>Tue, 21 Jul 2026 12:04:20 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!CMdX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>Minimum Leaf Size in LightGBM &#8212; min_child_samples / min_data_in_leaf</strong></h1><h2>(1) Introduction</h2><p><span>In the previous post, we discussed num_leaves and max_depth as important parameters that determine the complexity of LightGBM.</span></p><p><span>num_leaves was the parameter that determines how many leaves one tree can have.<br>In other words, it determines how finely the model is allowed to divide stocks into groups.</span></p><p><span>max_depth was the parameter that determines the depth of the tree.<br>In other words, it determines how many stages of conditional splits are allowed.</span></p><p><span>These two parameters control the &#8220;shape complexity&#8221; of LightGBM.</span></p><p><span>This time, we will discuss the next extremely important parameter.</span></p><p><span>That is:</span></p><ul><li><p><span>min_child_samples</span></p></li><li><p><span>min_data_in_leaf</span></p></li></ul><p><span>These two are often used with essentially the same meaning. They determine the minimum number of samples required in one leaf.</span></p><p><span>Using the language from the previous post, num_leaves and max_depth determine:</span></p><blockquote><p><span>How finely the model is allowed to split.</span></p></blockquote><p><span>In contrast, min_child_samples determines:</span></p><blockquote><p><span>How many samples are required at minimum in each of those detailed groups.</span></p></blockquote><p><span>This is extremely important in financial ML.</span></p><p><span>That is because patterns observed only in a small number of stocks or a small number of periods may not continue into the future.</span></p><p><span>If the model learns:</span></p><blockquote><p><span>This small group of stocks performed well in the past,<br>so it should also perform well in the future,</span></p></blockquote><p><span>that can be quite dangerous.</span></p><p><span>min_child_samples is an important brake that prevents LightGBM from creating too many groups that are too small.</span></p><div><hr></div><h2>(2) What Is a Leaf?</h2><p><span>First, let&#8217;s review what a leaf is.</span></p><p><span>A decision tree splits data based on conditions.</span></p><p><span>For example, it may use splits such as:</span></p><blockquote><p><span>Is ROE high or low?<br>Is PER low or high?<br>Is momentum strong or weak?<br>Have analyst estimates been revised upward?<br>Is market capitalization large or small?</span></p></blockquote><p><span>By layering these conditions over several stages, stocks are divided into multiple groups.</span></p><p><span>The final groups at the end of the tree are called leaves.</span></p><p><span>For example, one leaf may contain stocks such as:</span></p><blockquote><p><span>Stocks with high ROE, low PER, strong momentum, and upward analyst estimate revisions.</span></p></blockquote><p><span>Another leaf may contain stocks such as:</span></p><blockquote><p><span>Stocks with low ROE, high PER, weak momentum, and downward analyst estimate revisions.</span></p></blockquote><p><span>LightGBM assigns a prediction value to each leaf.</span></p><p><span>In other words, for the group of stocks that fall into each leaf, the model makes judgments such as:</span></p><blockquote><p><span>This group is expected to have high average returns.<br>This group is expected to have low average returns.</span></p></blockquote><p><span>What matters here is when a leaf is too small.</span></p><p><span>If only a very small number of stocks fall into a certain leaf, that leaf&#8217;s prediction value is strongly influenced by a small number of samples.</span></p><p><span>For example, suppose only 5 stocks fall into a leaf.<br>If those 5 stocks happened to produce very good returns in the past, the model may judge that leaf to be a &#8220;good group.&#8221;</span></p><p><span>But did those 5 stocks truly share a meaningful common pattern?<br>Or did they simply rise by chance during that period?</span></p><p><span>In financial ML, distinguishing between these two is extremely difficult.<br></span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!CMdX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!CMdX!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png 424w, /__u/substackcdn.com/image/fetch/$s_!CMdX!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png 848w, /__u/substackcdn.com/image/fetch/$s_!CMdX!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png 1272w, /__u/substackcdn.com/image/fetch/$s_!CMdX!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!CMdX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png" width="1364" height="1508" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1508,&quot;width&quot;:1364,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:563660,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/207516283?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!CMdX!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png 424w, /__u/substackcdn.com/image/fetch/$s_!CMdX!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png 848w, /__u/substackcdn.com/image/fetch/$s_!CMdX!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png 1272w, /__u/substackcdn.com/image/fetch/$s_!CMdX!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9dbe844b-8c05-4d0f-b620-5a6ead932d53_1364x1508.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) Introduction<br>(2) What Is a Leaf?<br><br>&#65288;Paid Section)<br>(3) What Is min_child_samples?<br>(4) Relationship With min_data_in_leaf<br>(5)When min_child_samples Is Small<br>(6) When min_child_samples Is Large<br>(7) min_child_samples Determines the &#8220;Amount of Evidence&#8221;<br>(8) Relationship With num_leaves<br>(9) Relationship With max_depth<br>(10) Relationship With learning_rate<br>(11) Why min_child_samples Is Especially Important in Financial ML<br>(12) Thinking About Small-Cap Universes<br>(13) Thinking About the S&amp;P 500<br>(14) Relationship With Target Horizon<br>(15) When the Number of Features Is Large<br>(16) Relationship With Missing Values and Outliers<br>(17) Concrete Setting Examples<br>(18) What to Check When Increasing min_child_samples<br>(19) What to Check When Decreasing min_child_samples<br>(20) Impact on Feature Importance<br>(21) Impact on best_iteration<br>(22) Practical Tuning Order<br>(23) Common Ways to Read the Results<br>(24) Summary</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-179">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Understanding Model Personality Through Hyperparameters #4: Controlling LightGBM Complexity — num_leaves and max_depth]]></title><description><![CDATA[Deep insights into the hyperparameters of LightGBM and Extra Trees based on the tuning order]]></description><link>https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-9ce</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-9ce</guid><pubDate>Tue, 14 Jul 2026 12:00:49 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!QbOi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>Controlling LightGBM Complexity &#8212; num_leaves and max_depth</strong></h1><h2><strong>(1) Introduction</strong></h2><p><span>In the previous post, we discussed n_estimators and max_features as the first hyperparameters to examine in ExtraTrees.</span></p><p><span>ExtraTrees builds many random trees and averages them.<br>Therefore, the first things to consider were:</span></p><blockquote><p><span>How many trees should we build?<br>How diverse should each tree be?</span></p></blockquote><p><span>n_estimators determines the amount of averaging.<br>max_features determines the diversity of the trees being averaged.</span></p><p><span>In this post, we return to LightGBM.</span></p><p><span>In Post 2, we discussed learning_rate and n_estimators as the first step in LightGBM.</span></p><p><span>Those two parameters determined:</span></p><blockquote><p><span>How cautiously the model learns<br>How far the learning process is allowed to continue</span></p></blockquote><p><span>This time, we will discuss the next important parameters.</span></p><p><span>They are:</span></p><ul><li><p><span>num_leaves</span></p></li><li><p><span>max_depth</span></p></li></ul><p><span>If learning_rate and n_estimators determine &#8220;how much the model is allowed to learn,&#8221; then num_leaves and max_depth determine:</span></p><blockquote><p><span>How complexly the model is allowed to learn.</span></p></blockquote><p><span>LightGBM is a very powerful model.<br>A major reason for that strength is its ability to capture complex nonlinear patterns and interactions between features.</span></p><p><span>However, in financial ML, this strength also becomes a risk.</span></p><p><span>If a model can capture detailed patterns in past data, it can also capture detailed noise in past data.</span></p><p><span>Therefore, in LightGBM, we need to carefully decide:</span></p><blockquote><p><span>How complex the conditional splits are allowed to become.</span></p></blockquote><p><span>At the center of this issue are num_leaves and max_depth.</span></p><div><hr></div><h2>(2) What Does &#8220;Complexity&#8221; Mean in LightGBM?</h2><p>First, let&#8217;s organize what complexity means in LightGBM.</p><p>LightGBM is a model that accumulates decision trees.</p><p>A decision tree splits data using features.</p><p>To simplify greatly, possible splits might look like this:</p><blockquote><p>Is ROE high or low?<br>Is PER low or high?<br>Is recent momentum strong or weak?<br>Have analyst estimates been revised upward?<br>Is sales growth high?<br>Is market capitalization large or small?</p></blockquote><p>By combining these conditions, the model divides stocks into several groups.</p><p>For example, it can create a group such as:</p><blockquote><p>Stocks with high ROE, low PER, and strong recent momentum.</p></blockquote><p>Or it can create a group such as:</p><blockquote><p>Stocks with high sales growth, low profitability, and downward analyst estimate revisions.</p></blockquote><p>In this way, decision trees can create quite complex conditions by combining features.</p><p>As the tree becomes deeper and the number of leaves increases, it can create more detailed groups.</p><p>This is the expressive power of LightGBM.</p><p>However, there is a problem.</p><p>Being able to create detailed groups also means being able to react to accidental combinations in past data.</p><p>For example, suppose that in one period, the following group happened to produce good returns:</p><blockquote><p>Stocks with high ROE, low PER, medium 6-month momentum, slightly positive analyst estimate revisions, and mid-cap market capitalization.</p></blockquote><p>If this pattern is truly effective in the future, that is excellent.</p><p>However, it may simply have occurred by chance in that market environment.</p><p>If the tree is too complex, it can learn these accidental combinations of conditions.</p><p>This is extremely important in financial ML.</p><blockquote><p>The ability to capture complex patterns<br>and the danger of capturing accidental noise</p></blockquote><p>are two sides of the same coin.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!QbOi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!QbOi!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png 424w, /__u/substackcdn.com/image/fetch/$s_!QbOi!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png 848w, /__u/substackcdn.com/image/fetch/$s_!QbOi!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png 1272w, /__u/substackcdn.com/image/fetch/$s_!QbOi!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!QbOi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png" width="1380" height="1544" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1544,&quot;width&quot;:1380,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:566682,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/206995847?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!QbOi!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png 424w, /__u/substackcdn.com/image/fetch/$s_!QbOi!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png 848w, /__u/substackcdn.com/image/fetch/$s_!QbOi!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png 1272w, /__u/substackcdn.com/image/fetch/$s_!QbOi!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F200fb17e-c11c-40bb-aaa8-0e5a14146099_1380x1544.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) Introduction<br>(2) What Does &#8220;Complexity&#8221; Mean in LightGBM?<br><br>&#65288;Paid Section)<br>(3) What Is num_leaves?<br>(4) When num_leaves Is Large<br>(5) When num_leaves Is Small<br>(6) num_leaves Strongly Changes LightGBM&#8217;s Personality<br>(7) What Is max_depth?<br>(8) The Difference Between num_leaves and max_depth<br>(9) When max_depth Is Deep<br>(10) When max_depth Is Shallow<br>(11) LightGBM&#8217;s Leaf-Wise Growth and max_depth<br>(12) The Relationship Between num_leaves and max_depth<br>(13) Concrete Setting Examples<br>(14) What to Check When Increasing num_leaves<br>(15) What to Check When Limiting max_depth<br>(16) Relationship With best_iteration<br>(17) Relationship With min_child_samples<br>(18) Thinking About Small-Cap Universes<br>(19) Thinking About the S&amp;P 500<br>(20) Short-Term Targets and Long-Term Targets<br>(21) When the Number of Features Is Large<br>(22) Practical Tuning Order<br>(23) Common Ways to Read the Results<br>(24) Summary</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-9ce">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Understanding Model Personality Through Hyperparameters #3: The First Tuning Step in ExtraTrees — n_estimators and max_features]]></title><description><![CDATA[Deep insights into the hyperparameters of LightGBM and Extra Trees based on the tuning order]]></description><link>https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-023</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-023</guid><pubDate>Tue, 07 Jul 2026 12:01:26 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!BiSj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>The First Tuning Step in ExtraTrees &#8212; n_estimators and max_features</strong></h1><h2><strong>Introduction</strong></h2><p><span>In the previous episode, we discussed learning_rate and n_estimators as the first hyperparameters to examine in LightGBM.</span></p><p><span>In LightGBM, trees are added one by one, and each new tree corrects the errors of the previous trees.<br>Therefore, learning_rate and n_estimators were the most upstream parameters that determine the model&#8217;s overall learning speed and overfitting risk.</span></p><p><span>In LightGBM, the important questions were:</span></p><blockquote><p><span>How much should each tree learn?<br>How many trees should be accumulated?</span></p></blockquote><p><span>In this episode, we will discuss ExtraTrees.</span></p><p><span>ExtraTrees also has important parameters that we should examine first.</span></p><p><span>They are:</span></p><ul><li><p><span>n_estimators</span></p></li><li><p><span>max_features</span></p></li></ul><p><span>However, there is one important point to keep in mind.</span></p><p><span>LightGBM also has a parameter called n_estimators.<br>ExtraTrees also has n_estimators.</span></p><p><span>But even though the name is the same, the meaning is quite different.</span></p><p><span>In LightGBM, n_estimators was the number of times the model continues sequential error correction.<br>In other words, increasing the number of trees meant making the model fit the past data further.</span></p><p><span>In ExtraTrees, on the other hand, n_estimators is the number of many randomized trees that are created and then averaged.<br>Increasing the number of trees mainly means strengthening the averaging effect and stabilizing predictions.</span></p><p><span>This difference is extremely important.</span></p><p><span>In ExtraTrees, the first things we should consider are:</span></p><blockquote><p><span>How many trees should we build?<br>How many different features should each tree be allowed to see?</span></p></blockquote><p><span>In other words, the first step in ExtraTrees is:</span></p><blockquote><p><span>Create stability through the number of trees,<br>and create diversity through max_features.</span></p></blockquote><div><hr></div><h2><strong><span>(1) ExtraTrees Is a Model That Averages Random Trees</span></strong></h2><p><span>First, let&#8217;s recall the basic personality of ExtraTrees.</span></p><p><span>ExtraTrees is short for Extremely Randomized Trees.<br>As the name suggests, it is a tree ensemble model that uses a fairly strong degree of randomness.</span></p><p><span>If we use only a single decision tree, the model tends to react strongly to small movements in the data.<br>Especially when the data contains a lot of noise, as financial data does, a single tree is quite unstable.</span></p><p><span>It may split well in one period but fail completely in another.<br>A certain feature may appear to work by chance, but that does not mean it will continue to work in the future.</span></p><p><span>Therefore, ExtraTrees builds many trees.</span></p><p><span>Moreover, it builds each tree with a considerable amount of randomness.<br>Then it averages their predictions.</span></p><p><span>Each individual tree is not necessarily smart.<br>However, when many trees are averaged, the randomness of individual trees is smoothed out.</span></p><p><span>This idea is very important in financial ML.</span></p><p><span>In financial data, individual signals are weak and unstable.<br>Fundamentals, momentum, and analyst estimates may work in one period and stop working in another.</span></p><p><span>For this reason, relying on one strong rule is often less stable than averaging many weak judgments.</span></p><p><span>This is exactly the basic idea behind ExtraTrees.</span></p><blockquote><p><span>Instead of building one strong tree,<br>build many random trees and stabilize the model by averaging them.</span></p></blockquote><p><span>For this reason, the first parameters to examine in ExtraTrees naturally become the following two:</span></p><ul><li><p><span>How many trees should be built?</span></p></li><li><p><span>How many different features should each tree be allowed to see?</span></p></li></ul><p><span>These are n_estimators and max_features.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!BiSj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!BiSj!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png 424w, /__u/substackcdn.com/image/fetch/$s_!BiSj!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png 848w, /__u/substackcdn.com/image/fetch/$s_!BiSj!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png 1272w, /__u/substackcdn.com/image/fetch/$s_!BiSj!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!BiSj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png" width="1398" height="1368" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d5792937-7ce4-432d-a657-b7747f874729_1398x1368.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1368,&quot;width&quot;:1398,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:523797,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/205734408?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!BiSj!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png 424w, /__u/substackcdn.com/image/fetch/$s_!BiSj!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png 848w, /__u/substackcdn.com/image/fetch/$s_!BiSj!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png 1272w, /__u/substackcdn.com/image/fetch/$s_!BiSj!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd5792937-7ce4-432d-a657-b7747f874729_1398x1368.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) ExtraTrees Is a Model That Averages Random Trees</p><p>&#65288;Paid Section)<br>(2) What Is n_estimators?<br>(3) Benefits of Increasing n_estimators<br>(4) Risks of Increasing n_estimators<br>(5) Does n_estimators Increase Overfitting?<br>(6) What Is max_features?<br>(7) When max_features Is Large<br>(8) When max_features Is Small<br>(9) max_features Also Helps Deal With Multicollinearity<br>(10) When the Number of Features Increases to 120, 200, or 300<br>(11) n_estimators and max_features Should Be Considered Together<br>(12) Concrete Setting Examples<br>(13) Points to Watch When Reading max_features Result<br>(14) Check the Stability of Feature Importance<br>(15) What to Check When Increasing n_estimators<br>(16) random_state and Reproducibility<br>(17) Organizing the Difference From LightGBM Again<br>(18) Summary</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-023">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Understanding Model Personality Through Hyperparameters #2: The First Tuning Step in LightGBM — learning_rate and n_estimators]]></title><description><![CDATA[Deep insights into the hyperparameters of LightGBM and Extra Trees based on the tuning order]]></description><link>https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-a88</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-a88</guid><pubDate>Tue, 30 Jun 2026 12:03:27 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!L1Ju!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>The First Tuning Step in LightGBM &#8212; learning_rate and n_estimators</strong></h1><h2><strong>Introduction</strong></h2><p><span>In the previous post, we organized the overall picture of hyperparameter tuning.</span></p><p><span>The especially important point was that we should not think of hyperparameter tuning simply as &#8220;performance improvement.&#8221;</span></p><p><span>In financial machine learning, the setting that produces the best score on past data is not necessarily the strongest setting for the future.<br>In fact, a model that fits the past too well may collapse more easily in future market environments.</span></p><p><span>Therefore, the purpose of hyperparameter tuning is not to create the best historical backtest.</span></p><p><span>The purpose is:</span></p><blockquote><p><span>To control the model&#8217;s degree of freedom so that it does not overreact to market noise.</span></p></blockquote><p><span>From this post, we will begin discussing specific parameters.</span></p><p><span>The first parameters we will cover are the most upstream parameters in LightGBM.</span></p><p><span>They are:</span></p><ul><li><p><span>learning_rate</span></p></li><li><p><span>n_estimators</span></p></li></ul><p><span>In LightGBM, these two should not be considered separately.</span></p><p><span>learning_rate determines how much each individual tree learns.<br>n_estimators determines how many trees are accumulated.</span></p><p><span>In other words, together, these two parameters determine:</span></p><blockquote><p><span>How cautiously the model learns<br>How far the learning process is allowed to continue</span></p></blockquote><p><span>In LightGBM tuning, it is natural to look at these first.</span></p><p><span>This is because these two parameters have a major impact on the model&#8217;s overall learning speed, overfitting risk, cross-validation behavior, and early stopping results.</span></p><div><hr></div><h2><strong>(1) LightGBM Is a Model That Learns by Adding Trees</strong></h2><p><span>First, let&#8217;s recall the basic learning mechanism of LightGBM.</span></p><p><span>LightGBM is a gradient boosting model.</span></p><p><span>It is not a model like ExtraTrees, where many trees are built independently and averaged.<br>In LightGBM, trees are added one by one in sequence.</span></p><p><span>The first tree makes a prediction.<br>That prediction contains errors.<br>The next tree learns in a way that corrects those errors.<br>The following tree then corrects the remaining errors.</span></p><p><span>In this way, LightGBM is:</span></p><blockquote><p><span>A model in which each new tree gradually corrects the failures of the previous trees.</span></p></blockquote><p><span>This is a major difference from ExtraTrees.</span></p><p><span>In ExtraTrees, increasing the number of trees mainly means strengthening the averaging effect.<br>By building and averaging many random trees, the model stabilizes its predictions.</span></p><p><span>In LightGBM, on the other hand, increasing the number of trees means pushing the learning process further.<br>That is, the model continues to fit the past data more deeply.</span></p><p><span>For this reason, we need to be cautious about increasing the number of trees in LightGBM.</span></p><p><span>If we add more trees, performance will certainly improve at first.<br>However, beyond a certain point, the model may begin learning small pieces of noise that will not be reproduced in the future.</span></p><p><span>When thinking about &#8220;how far to let the model learn,&#8221; learning_rate and n_estimators become crucial.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!L1Ju!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!L1Ju!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png 424w, /__u/substackcdn.com/image/fetch/$s_!L1Ju!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png 848w, /__u/substackcdn.com/image/fetch/$s_!L1Ju!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png 1272w, /__u/substackcdn.com/image/fetch/$s_!L1Ju!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!L1Ju!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png" width="1386" height="1440" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1440,&quot;width&quot;:1386,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:474486,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/204228555?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!L1Ju!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png 424w, /__u/substackcdn.com/image/fetch/$s_!L1Ju!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png 848w, /__u/substackcdn.com/image/fetch/$s_!L1Ju!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png 1272w, /__u/substackcdn.com/image/fetch/$s_!L1Ju!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd98a8a7a-8180-4eee-bbf2-363bcf6e85cf_1386x1440.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) LightGBM Is a Model That Learns by Adding Trees</p><p>&#65288;Paid Section)<br>(2) What Is learning_rate?<br>(3) What Is n_estimators?<br>(4) learning_rate and n_estimators Should Be Considered Together<br>(5) Benefits and Risks of a High learning_rate<br>(6) Benefits and Risks of a Low learning_rate<br>(7) Set n_estimators Large and Let Early Stopping Decide<br>(8) Early Stopping Is a Tool for Deciding the Endpoint of Learning<br>(9) CV Fold Count and the Optimal Number of Trees<br>(10) In Financial ML, a Lower learning_rate + Early Stopping Often Becomes the Baseline<br>(11) Concrete Setting Examples<br>(12) Look at best_iteration Rather Than the Number of Trees Itself<br>(13) When best_iteration Differs Greatly Across Folds<br>(14) What to Check When Lowering learning_rate<br>(15) What to Check When Increasing n_estimators<br>(16) &#8220;A Low learning_rate Is Safe&#8221; Is Not Always True<br>(17) The First Thing to Do When Tuning LightGBM<br>(18) Typical Ways to Read learning_rate and n_estimators<br>(19) Summary</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/understanding-model-personality-through-a88">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Understanding Model Personality Through Hyperparameters #1: Hyperparameters Are Not About “Improving Performance,” but About “Controlling Runaway Behavior”]]></title><description><![CDATA[Deep insights into the hyperparameters of LightGBM and Extra Trees based on the tuning order]]></description><link>https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/understanding-model-personality-through</guid><pubDate>Tue, 23 Jun 2026 12:01:00 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!xOp1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>Hyperparameters Are Not About &#8220;Improving Performance,&#8221; but About &#8220;Controlling Runaway Behavior&#8221;</strong></h1><h2><strong>Introduction</strong></h2><p><span>So far in several series, we have compared LightGBM and Extra Trees from several different angles.</span></p><p><span>In Part 1, we conducted a &#8220;</span><strong><span>personality diagnosis</span></strong><span>&#8221; of the two models.<br> We examined the basic characteristics of each model, including resistance to overfitting, robustness to outliers, robustness to noisy targets, handling of interactions between factors, linear and nonlinear patterns, multicollinearity, and suitability for small-cap universes and the S&amp;P 500.</span></p><p><span>In Part 2, we discussed how to </span><strong><span>interpret model results</span></strong><span>.<br> We looked at RMSE, Pearson correlation, Spearman correlation, Avg%(H-L), Feature Importance, SD, Turn%, and return curves.<br> In particular, we confirmed that in financial machine learning, it is not enough for prediction error to be small. We also need to examine the spread between the top-ranked and bottom-ranked stocks, the stability of the return curve, turnover, standard deviation, and other metrics in a comprehensive way.</span></p><p><span>In Part 3, we visualized the</span><strong><span> learning steps </span></strong><span>of LightGBM and Extra Trees.<br> We saw that LightGBM is a sequential model that corrects the errors of previous trees with subsequent trees, while Extra Trees is a model that builds many highly randomized trees independently and gains stability by averaging them.</span></p><p><span>In Part 4, we discussed the true role of validation, or </span><strong><span>cross-validation</span></strong><span>.<br> Validation data is not where the model is directly updated. Rather, it is where we examine whether the model can withstand future data.<br> We also covered early stopping, the number of folds, the strictness of validation, and why ensembles of weak models can be powerful.</span></p><div><hr></div><p><span>At this point, we have a fairly clear picture of the basic personalities of LightGBM and Extra Trees, how to read their results, how their learning processes work, and what role validation plays.</span></p><p><span>The next major topic should be &#8220;</span><strong><span>features</span></strong><span>&#8221;.</span></p><p><span>In other words, we need to discuss what kinds of fundamental indicators, price momentum indicators, analyst estimate indicators, quality indicators, value indicators, growth indicators, and risk indicators should be fed into the model.</span></p><p><span>However, before moving on to that major topic, there is one important preliminary step.</span></p><p><span>That is the topic we will begin covering now: &#8220;</span><strong><span>hyperparameters&#8221;</span></strong><span>.</span></p><p><span>Before increasing or modifying features, we first need to understand the &#8220;control knobs&#8221; on the model side.<br> This is because even if we use the same features, the model&#8217;s behavior can change significantly depending on the hyperparameter settings.</span></p><p><span>Even when using the same data, the same target, and the same features, the following can happen:</span></p><ul><li><p><strong><span>LightGBM may try to predict too sharply.</span></strong></p></li><li><p><strong><span>Extra Trees may average too much and become too dull.</span></strong></p></li><li><p><strong><span>The scores of top-ranked stocks may become unstable.</span></strong></p></li><li><p><strong><span>Results may look good in cross-validation but collapse in backtesting.</span></strong></p></li><li><p><strong><span>RMSE may improve while Avg% (H-L) does not improve.</span></strong></p></li></ul><p><span>Many of these differences are deeply related to </span><strong><span>hyperparameter settings</span></strong><span>.</span></p><p><span>Therefore, in Part 5, we will organize the major hyperparameters of LightGBM and Extra Trees in an order that is close to the actual order in which we would examine them during tuning.</span></p><p><span>In this first post, before getting into individual parameters, we will first review the overall picture.</span></p><div><hr></div><h2><strong>(1) What Are Hyperparameters?</strong></h2><p><span>In machine learning models, there are broadly two types of &#8220;settings.&#8221;</span></p><p><span>The first type is what the model automatically learns from the data.<br> For example, which feature to use at each split, what threshold to split on, and what prediction value to place in each leaf.</span></p><p><span>These are determined by the model itself from the training data.</span></p><p><span>The second type is what humans decide in advance.<br> For example, how many trees to build, how deep the trees are allowed to grow, how many samples are required in a leaf, how much randomness to apply to feature selection, and what learning rate to use.</span></p><p><span>These are hyperparameters.</span></p><p><span>Put simply, hyperparameters are:</span></p><blockquote><p><span>Control knobs that humans set in advance to determine how the model learns.</span></p></blockquote><p><span>For LightGBM, examples include:</span></p><ul><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">learning_rate</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">n_estimators</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">num_leaves</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">max_depth</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">min_child_samples</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">feature_fraction</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">bagging_fraction</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">lambda_l1</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">lambda_l2</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">min_gain_to_split</span></p></li></ul><p><span>For Extra Trees, examples include:</span></p><ul><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">n_estimators</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">max_features</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">max_depth</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">min_samples_leaf</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">min_samples_split</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">bootstrap</span></p></li><li><p><span data-color="rgb(24, 128, 56)" style="color: rgb(24, 128, 56);">max_samples</span></p></li></ul><p><span>These are not just minor settings.</span></p><p><span>They determine how complex a pattern the model is allowed to learn.<br> How much the model reacts to noise.<br> How stable its predictions are.<br> How much it depends on specific features.<br> How much randomness is introduced.</span></p><p><span>In other words, they are important elements that determine the model&#8217;s &#8220;personality.&#8221;<br></span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!xOp1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!xOp1!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png 424w, /__u/substackcdn.com/image/fetch/$s_!xOp1!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png 848w, /__u/substackcdn.com/image/fetch/$s_!xOp1!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png 1272w, /__u/substackcdn.com/image/fetch/$s_!xOp1!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!xOp1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png" width="1456" height="1291" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1291,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:493194,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/202924961?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!xOp1!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png 424w, /__u/substackcdn.com/image/fetch/$s_!xOp1!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png 848w, /__u/substackcdn.com/image/fetch/$s_!xOp1!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png 1272w, /__u/substackcdn.com/image/fetch/$s_!xOp1!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3703f592-f02a-4bdc-bd8a-449a7bdcfd97_1568x1390.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) <strong>What Are Hyperparameters?</strong></p><p>&#65288;Paid Section)<br><strong>(2) Is Hyperparameter Tuning a Process for Improving Performance?<br>(3) <span>In Financial ML, &#8220;Robustness&#8221; Matters More Than &#8220;Predictive Power&#8221;</span><br>(4) <span>LightGBM and Extra Trees Require Different Tuning Philosophies</span><br>(5) <span>LightGBM Is &#8220;Sharp, but Can Become Unstable&#8221;</span><br>(6) <span>Extra Trees Is &#8220;Duller, but Easier to Stabilize&#8221;</span><br>(7) <span>Even With the Same Features, Hyperparameters Can Change the Results</span><br>(8) <span>RMSE Optimization and Investment Performance Optimization Are Not the Same</span><br>(9) <span>Hyperparameters Are Not Tools for Finding the &#8220;Best Historical Performance&#8221;</span><br>(10) <span>What to Look at First in LightGBM</span><br>(11) Summary</strong></p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/understanding-model-personality-through">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[The True Role of Validation (CV) #7: Why Ensembles of Weak Models Are So Powerful in Financial ML]]></title><description><![CDATA[How Fold-Averaged Scores Determine best_iteration]]></description><link>https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-7</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-7</guid><pubDate>Tue, 16 Jun 2026 12:00:57 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!nV8_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>Why Ensembles of Weak Models Are So Powerful in Financial ML</strong></h1><h2><strong>Introduction</strong></h2><h4><strong>Why LightGBM and ExtraTrees Work So Well with Financial Data</strong></h4><p>Throughout this series, we have examined the relationship between Validation and model training.</p><p>The most important takeaways were:</p><ol><li><p>Validation is not where the model gets updated</p></li><li><p>CV is a mechanism for evaluating models</p></li><li><p>Early Stopping is determined by the average CV score</p></li><li><p>Stricter CV leads to shallower models</p></li><li><p>In financial ML, making CV too strict can sometimes reduce performance</p></li></ol><p>Once you understand these concepts, a natural question arises:</p><p>What kind of models perform best in financial ML?</p><p>The answer is:</p><blockquote><p><strong>In financial machine learning, ensembles of many weak models often outperform a single strong model.</strong></p></blockquote><p>And two algorithms that implement this idea exceptionally well are:</p><ul><li><p>LightGBM</p></li><li><p>ExtraTrees</p></li></ul><p>In this final article, we will examine why.</p><div><hr></div><h2><strong>(1) Stock Market Data Contains Overwhelming Amounts of Noise</strong></h2><p>Let&#8217;s begin with the fundamental reality of financial ML.</p><p>Stock market data has the following structure:</p><p><strong>signal &lt;&lt; noise</strong></p><p>As a rough illustration, imagine a world where:</p><ul><li><p>True predictive power (IC) &#8776; 0.02</p></li><li><p>Noise                     &#8776; &#177;0.10</p></li></ul><p>In other words:</p><p>Model prediction = signal + noise</p><p>Because of this,</p><blockquote><p><strong>the influence of noise on any single model is extremely large.</strong></p></blockquote><h3><strong><br>The Problem with a Single Model</strong></h3><p>Suppose we train a single model.</p><p>Its prediction can be expressed as:</p><p>Prediction = signal + noise</p><p>The problem is that:</p><p>noise &gt; signal</p><p>In other words,</p><blockquote><p>most of the model&#8217;s prediction may be driven by randomness.</p></blockquote><p>This is what makes financial machine learning so difficult.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!nV8_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!nV8_!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png 424w, /__u/substackcdn.com/image/fetch/$s_!nV8_!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png 848w, /__u/substackcdn.com/image/fetch/$s_!nV8_!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png 1272w, /__u/substackcdn.com/image/fetch/$s_!nV8_!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!nV8_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png" width="1456" height="1065" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1065,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:116159,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/201943043?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!nV8_!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png 424w, /__u/substackcdn.com/image/fetch/$s_!nV8_!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png 848w, /__u/substackcdn.com/image/fetch/$s_!nV8_!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png 1272w, /__u/substackcdn.com/image/fetch/$s_!nV8_!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F58c3920d-285b-41d5-a61d-892e285b3584_1506x1102.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) <strong>Stock Market Data Contains Overwhelming Amounts of Noise</strong></p><p>&#65288;Paid Section)<br><strong>(2) The Basic Principle of Ensembles<br>(3) Noise Declines at a Rate of &#8730;N<br>(4) Why Weak Models Become Important<br>(5) Weak Models Are Less Likely to Learn Noise<br>(6) LightGBM Builds Signal by Adding Weak Trees<br>(7) ExtraTrees Averages Many Random Trees<br>(8) The Difference Between LightGBM and ExtraTrees<br>(9) Why These Two Methods Work So Well in Financial ML<br>(10) Series Summary</strong></p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-7">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[The True Role of Validation (CV) #6: Why Validation Becomes More Stringent as the Number of Folds Increases]]></title><description><![CDATA[How Fold-Averaged Scores Determine best_iteration]]></description><link>https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-6</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-6</guid><pubDate>Tue, 09 Jun 2026 12:03:41 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!z4pp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>Why Validation Becomes More Stringent as the Number of Folds Increases</strong></h1><h2><strong>Introduction</strong></h2><p>In the previous article, we discussed the following phenomenon:</p><ul><li><p>Increase the number of CV folds<br>&#8595;</p></li><li><p>Validation becomes more stringent<br>&#8595;</p></li><li><p>Earlier Early Stopping<br>&#8595;</p></li><li><p>Fewer trees</p></li></ul><p>This is a natural consequence of how LightGBM works.</p><p>Once you understand this, a new question naturally arises:</p><p>Is more CV always better?</p><p>In conventional machine learning, the answer is almost always <strong>yes</strong>.</p><ul><li><p>More CV folds<br>&#8595;</p></li><li><p>More stable evaluation<br>&#8595;</p></li><li><p>Better model selection</p></li></ul><p>However, financial machine learning introduces a more complicated problem.</p><p>In practice, the following phenomenon is not uncommon:</p><ul><li><p>Increase CV folds<br>&#8595;</p></li><li><p>CV scores become more stable<br>&#8595;</p></li><li><p>But live trading performance declines</p></li></ul><p>In other words,</p><blockquote><p><strong>increasing the amount of CV can sometimes reduce real-world performance.</strong></p></blockquote><p>In this article, we will examine why.</p><div><hr></div><h2><strong>(1) Stock Prediction Has Extremely Weak Signals</strong></h2><p>First, there is a fundamental characteristic of financial machine learning.</p><p>Stock market data has the following structure:</p><p><strong>signal &lt;&lt; noise</strong></p><p>As a rough illustration, imagine a world where:</p><ul><li><p>True predictive power (IC) &#8776; 0.02</p></li><li><p>Noise                     &#8776; &#177;0.10</p></li></ul><p>In other words:</p><p><strong>Model score = signal + noise</strong></p><p>As a result,</p><blockquote><p><strong>CV scores tend to exhibit very large fluctuations.</strong></p></blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!z4pp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!z4pp!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png 424w, /__u/substackcdn.com/image/fetch/$s_!z4pp!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png 848w, /__u/substackcdn.com/image/fetch/$s_!z4pp!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png 1272w, /__u/substackcdn.com/image/fetch/$s_!z4pp!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!z4pp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png" width="1456" height="982" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:982,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:155834,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/201269258?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!z4pp!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png 424w, /__u/substackcdn.com/image/fetch/$s_!z4pp!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png 848w, /__u/substackcdn.com/image/fetch/$s_!z4pp!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png 1272w, /__u/substackcdn.com/image/fetch/$s_!z4pp!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbda6f1f4-00e3-4278-b945-622203e3cab2_1524x1028.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) <strong>Stock Prediction Has Extremely Weak Signals</strong></p><p>&#65288;Paid Section)<br><strong>(2) Strong but Unstable Signals<br>(3) Weak but Stable Signals<br>(4) What Happens When CV Becomes More Stringent?<br>(5) But Live Trading Is Not a World of Averages<br>(6) What Happens as a Result?<br>(7) Winner&#8217;s Curse (Model Selection Bias)<br>(8) What Do Practitioners Actually Do in Financial ML?<br>(9) Summary<br>(10) Next Up</strong></p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-6">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[The True Role of Validation (CV) #5: Why Increasing the Number of CV Folds Can Reduce the Number of Trees]]></title><description><![CDATA[How Fold-Averaged Scores Determine best_iteration]]></description><link>https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-5</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-5</guid><pubDate>Tue, 02 Jun 2026 12:04:27 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Xm5Q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>Why Increasing the Number of CV Folds Can Reduce the Number of Trees</strong></h1><h2><strong>Introduction</strong></h2><p>In the previous article, we explained how Early Stopping is determined within Cross-Validation (CV).</p><p>The process looked like this:<br><br>iteration<br>&#8595;<br>Validation scores from each fold<br>&#8595;<br>Average score<br>&#8595;<br>Improvement stops<br>&#8595;<br>Early Stopping<br>&#8595;<br>best_iteration determined</p><p>In other words,</p><blockquote><p>Early Stopping is determined by the overall CV score.</p></blockquote><p>Once you understand this, a natural question arises:<br><br><code>What happens when we increase the number of CV folds?<br><br></code>Intuitively, many people think:<br><br>More folds<br>&#8595;<br>More accurate evaluation<br>&#8595;<br>Better model</p><p>However, in real LightGBM models, the following phenomenon often occurs:<br><br>More folds<br>&#8595;<br>Earlier Early Stopping<br>&#8595;<br>Smaller best_iteration<br>&#8595;<br>Fewer trees</p><p>This is not a bug or abnormal behavior.</p><p>In fact, once you understand how CV and Early Stopping work, it is a very natural outcome.</p><p>In this article, we will examine why.</p><div><hr></div><h2>(1) Early Stopping Adds Trees Only While Improvement Continues</h2><p>Let&#8217;s start with the basic idea.</p><p>LightGBM trains by adding decision trees one by one:<br><br>Tree1<br>Tree2<br>Tree3<br>Tree4<br>...</p><p>After each tree is added, it evaluates the:<br><br>Validation metric</p><p>The process is:</p><ul><li><p>Score improves<br>&#8595;<br>Continue training</p></li><li><p>Score stops improving<br>&#8595;<br>Early Stopping</p></li></ul><p>Therefore,</p><blockquote><p>best_iteration is determined by how long the Validation score continues to improve.</p></blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Xm5Q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Xm5Q!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png 424w, /__u/substackcdn.com/image/fetch/$s_!Xm5Q!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png 848w, /__u/substackcdn.com/image/fetch/$s_!Xm5Q!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Xm5Q!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Xm5Q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png" width="1292" height="512" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:512,&quot;width&quot;:1292,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:103128,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/200274328?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Xm5Q!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png 424w, /__u/substackcdn.com/image/fetch/$s_!Xm5Q!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png 848w, /__u/substackcdn.com/image/fetch/$s_!Xm5Q!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Xm5Q!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcff1972f-997e-4cfb-8f91-9d7783aa7e0d_1292x512.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) Early Stopping Adds Trees Only While Improvement Continues</p><p>&#65288;Paid Section)<br>(2) With Fewer Folds, Luck Has More Influence<br>(3) More Folds Make Evaluation Stricter<br>(4) More Folds Reduce the Impact of Lucky Results<br>(5) More Folds Mean a Stricter Overfitting Check<br>(6) A Common Real-World Result<br>(7) This Happens Especially Often with Stock Market Data<br>(8) However, More Folds Are Not Always Better<br>(9) This Leads to an Important Financial ML Question<br>(10) Next Up</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-5">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[The True Role of Validation (CV) #4: How Early Stopping (LightGBM) Is Determined in Cross-Validation]]></title><description><![CDATA[How Fold-Averaged Scores Determine best_iteration]]></description><link>https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-4</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-4</guid><pubDate>Tue, 26 May 2026 12:03:22 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!TwgR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>How Early Stopping (LightGBM) Is Determined in Cross-Validation</strong></h1><h2><strong>Introduction</strong></h2><p><strong><br></strong>In the previous posts, we discussed the role of Validation (CV).</p><p>The three key takeaways were:</p><ul><li><p>Validation is not where the model gets updated</p></li><li><p>Validation is where the model gets evaluated</p></li><li><p>Validation is where the best model configuration gets selected</p></li></ul><p>An important point is:</p><blockquote><p>the model weights themselves are not updated using validation data.</p></blockquote><p>However, at the same time:</p><blockquote><p><strong>validation scores heavily influence the final model structure through mechanisms such as Early Stopping and hyperparameter selection.</strong></p></blockquote><p>One of the most important things controlled by validation is:</p><p><strong>Early Stopping (LightGBM)</strong></p><p>If you use LightGBM, you have probably seen a value called:</p><p><code>best_iteration</code></p><p>Simply put, this represents:</p><blockquote><p><strong>&#8220;How many trees should the model build?&#8221;</strong></p></blockquote><p>But how exactly is this value determined inside cross-validation?</p><p>In this article, we will break down the mechanism step by step.</p><div><hr></div><h2><strong>(1) Trees Keep Getting Added in LightGBM</strong></h2><p>Before diving into the main topic of this post, it&#8217;s important to review the differences in the &#8220;Tree&#8221; concepts between LightGBM and Extra Trees.<strong><br><br>Note: The concept of &#8220;Number of Trees&#8221; differs between LightGBM and Extra Trees</strong></p><ul><li><p><strong>Extra Trees</strong> builds trees <em>independently</em> and in parallel &#8212; each tree is a complete, standalone predictor. More trees = more stability, like a larger jury.</p></li><li><p><strong>LightGBM</strong> builds trees <em>sequentially</em> &#8212; each tree corrects the residual errors left by the previous one. No single tree makes sense on its own.</p></li><li><p>In LightGBM, the final prediction is the <em>sum</em> of all trees weighted by the learning rate &#8212; the &#8220;number of trees&#8221; is closer to the number of correction steps than to independent voters.</p></li><li><p>Adding more trees in ExtraTrees is generally safe; in LightGBM it increases the risk of overfitting, which is why <strong>Early Stopping</strong> is needed to find the right stopping point.</p></li><li><p>The <code>best_iteration</code> in LightGBM represents the optimal number of sequential correction steps, not the number of independent models.</p><p></p></li></ul><p>Let&#8217;s start with the basic idea.</p><p>During training, LightGBM builds trees sequentially:</p><ul><li><p>Tree1</p></li><li><p>Tree2</p></li><li><p>Tree3</p></li><li><p>Tree4</p></li></ul><p>...</p><p>Each new tree is added on top of the previous ones.</p><p>As this happens:</p><ul><li><p>More trees<br>&#8595;</p></li><li><p>Higher model complexity<br>&#8595;</p></li><li><p>Better fit to the training data</p></li></ul><p>This is one of the core properties of boosting models.</p><p>However, at the same time:</p><ul><li><p>Too much complexity<br>&#8595;</p></li><li><p>The model starts learning noise<br>&#8595;</p></li><li><p>Overfitting</p></li></ul><p>also occurs.</p><p>This is where Early Stopping becomes important.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!TwgR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!TwgR!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png 424w, /__u/substackcdn.com/image/fetch/$s_!TwgR!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png 848w, /__u/substackcdn.com/image/fetch/$s_!TwgR!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png 1272w, /__u/substackcdn.com/image/fetch/$s_!TwgR!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!TwgR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png" width="1456" height="1114" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/770ab621-4395-4364-a505-e123c629ba06_1558x1192.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1114,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:267230,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/197626645?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!TwgR!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png 424w, /__u/substackcdn.com/image/fetch/$s_!TwgR!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png 848w, /__u/substackcdn.com/image/fetch/$s_!TwgR!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png 1272w, /__u/substackcdn.com/image/fetch/$s_!TwgR!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F770ab621-4395-4364-a505-e123c629ba06_1558x1192.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) Trees Keep Getting Added in LightGBM</p><p>&#65288;Paid Section)<br>(2) The Basic Idea of Early Stopping in LightGBM<br>(3) Training and Validation Behave Differently<br>(4) In CV, Each Fold Gets Evaluated Separately<br>(5) Early Stopping Uses the Overall CV Score<br>(6) How Early Stopping Gets Determined<br>(7) After CV, the Final Model Gets Built<br>(8) A New Question Naturally Appears<br>(9) Next up</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-4">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[The True Role of Validation (CV) #3: Mastering the Four Cross-Validation Methods]]></title><description><![CDATA[Not All Cross-Validation Methods Measure the Same Thing]]></description><link>https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-3</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-3</guid><pubDate>Tue, 19 May 2026 12:01:16 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!pdCL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h1><strong>Mastering the Four Cross-Validation Methods</strong></h1><h2><strong><br>Introduction</strong></h2><p>Portfolio123&#8217;s AI Factor feature provides four cross-validation (CV) methods:</p><ul><li><p><strong>Basic Holdout</strong></p></li><li><p><strong>Time Series CV</strong></p></li><li><p><strong>Rolling Time Series CV</strong></p></li><li><p><strong>K-fold CV (Blocked)</strong></p></li></ul><p>At first glance, they all appear to evaluate the same thing: model generalization performance.<br>However, after several years of developing AI factors, a recurring pattern becomes hard to ignore:</p><blockquote><p>K-fold CV (Blocked) often produces dramatically higher scores,<br>while Time Series CV and Rolling Time Series CV remain mediocre.</p></blockquote><p>What does this actually mean?</p><p><strong>Does it imply that K-fold is simply the &#8220;better&#8221; validation method?<br>Or is it revealing something problematic about the model itself?</strong></p><p>In this article, we will carefully examine the design philosophy behind all four CV methods and explain the practical implications of the &#8220;K-fold only looks great&#8221; phenomenon.</p><div><hr></div><h2><strong>(1) The Design Philosophy Behind the Four CV Methods<br><br>1) Basic Holdout</strong></h2><p>This is the simplest validation method: the dataset is split once into training and validation periods.</p><ul><li><p>[Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;] [Gap] [Holdout]</p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!pdCL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!pdCL!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png 424w, /__u/substackcdn.com/image/fetch/$s_!pdCL!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png 848w, /__u/substackcdn.com/image/fetch/$s_!pdCL!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png 1272w, /__u/substackcdn.com/image/fetch/$s_!pdCL!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!pdCL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png" width="1456" height="590" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/eefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:590,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:110341,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/197443736?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!pdCL!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png 424w, /__u/substackcdn.com/image/fetch/$s_!pdCL!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png 848w, /__u/substackcdn.com/image/fetch/$s_!pdCL!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png 1272w, /__u/substackcdn.com/image/fetch/$s_!pdCL!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feefdc03e-3f75-41bd-bfc2-128d89f48c8b_1802x730.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3><strong>Characteristics</strong></h3><ul><li><p>Simple implementation</p></li><li><p>Low computational cost</p></li><li><p>Useful for rapid prototyping</p></li></ul><p>However:</p><ul><li><p>Results heavily depend on the split point</p></li><li><p>Only one validation test is performed</p></li><li><p>Weak at detecting overfitting</p></li></ul><p>This method is best suited for the initial &#8220;does this idea even work?&#8221; stage.</p><div><hr></div><h2><strong>2) Time Series CV (Expanding Window)</strong></h2><p>The start date remains fixed while the training period gradually expands over multiple folds.</p><ul><li><p>Fold 1: [Training &#9472;&#9472;&#9472;] [Gap] [Holdout]</p></li><li><p>Fold 2: [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;] [Gap] [Holdout]</p></li><li><p>Fold 3: [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;] [Gap] [Holdout]</p></li><li><p>Fold 4: [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;] [Gap] [Holdout]</p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!VsFv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!VsFv!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png 424w, /__u/substackcdn.com/image/fetch/$s_!VsFv!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png 848w, /__u/substackcdn.com/image/fetch/$s_!VsFv!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png 1272w, /__u/substackcdn.com/image/fetch/$s_!VsFv!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!VsFv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png" width="1456" height="569" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:569,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:131905,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/197443736?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!VsFv!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png 424w, /__u/substackcdn.com/image/fetch/$s_!VsFv!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png 848w, /__u/substackcdn.com/image/fetch/$s_!VsFv!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png 1272w, /__u/substackcdn.com/image/fetch/$s_!VsFv!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5adeef0-a79d-4f83-98d3-770231e9233d_1790x700.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3><strong>Characteristics</strong></h3><ul><li><p>Strictly preserves the &#8220;past &#8594; future&#8221; direction</p></li><li><p>Closely resembles real-world deployment</p></li><li><p>More robust against overfitting through repeated validation</p></li></ul><p>On the other hand:</p><ul><li><p>Older data accumulates in every fold</p></li><li><p>Sensitivity to regime changes is somewhat reduced</p></li></ul><p>For evaluating long-term generalization, this is one of the most trustworthy CV approaches.</p><div><hr></div><h2><strong>3) Rolling Time Series CV</strong></h2><p>The training window size is fixed while the entire window rolls forward through time.</p><ul><li><p>Fold 1: [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;] [Gap] [Holdout]</p></li><li><p>Fold 2:      &#12288;[Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;] [Gap] [Holdout]</p></li><li><p>Fold 3:       &#12288;&#12288;    [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;] [Gap] [Holdout]</p></li><li><p>Fold 4:           &#12288;&#12288;&#12288;     [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;] [Gap] [Holdout]</p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!lnHQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!lnHQ!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png 424w, /__u/substackcdn.com/image/fetch/$s_!lnHQ!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png 848w, /__u/substackcdn.com/image/fetch/$s_!lnHQ!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png 1272w, /__u/substackcdn.com/image/fetch/$s_!lnHQ!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!lnHQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png" width="1456" height="558" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/87fab463-131a-4dde-b8eb-61638277acec_1802x690.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:558,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:129629,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/197443736?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!lnHQ!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png 424w, /__u/substackcdn.com/image/fetch/$s_!lnHQ!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png 848w, /__u/substackcdn.com/image/fetch/$s_!lnHQ!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png 1272w, /__u/substackcdn.com/image/fetch/$s_!lnHQ!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87fab463-131a-4dde-b8eb-61638277acec_1802x690.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3><strong>Characteristics</strong></h3><ul><li><p>Emphasizes recent market environments</p></li><li><p>Better suited for testing regime adaptability</p></li><li><p>Particularly useful around structural transitions such as:</p><ul><li><p>interest rate regime shifts</p></li><li><p>post-COVID market transitions</p></li><li><p>volatility regime changes</p></li></ul></li></ul><p>The tradeoff:</p><ul><li><p>Smaller training datasets</p></li><li><p>Reduced model stability</p></li></ul><p>Practically speaking, this CV answers the question:</p><blockquote><p>&#8220;Does the model still work in the current market environment?&#8221;</p></blockquote><div><hr></div><h2><strong>4) K-fold CV (Blocked)</strong></h2><p>This is the most misunderstood method.</p><p>Portfolio123 does not use standard randomized K-fold CV.<br>Instead, it uses a time-aware variation called <strong>Blocked K-fold CV</strong>.</p><p>Conceptually, it looks like this:</p><ul><li><p>Fold 1: [Holdout ] [Gap] [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;]</p></li><li><p>Fold 2: [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;] [Gap] [Holdout] [Gap] [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;]</p></li><li><p>Fold 3: [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;] [Gap] [Holdout] [Gap] [Training &#9472;]</p></li><li><p>Fold 4: [Training &#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472; ] [Gap] [Holdout]</p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!UVAf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!UVAf!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png 424w, /__u/substackcdn.com/image/fetch/$s_!UVAf!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png 848w, /__u/substackcdn.com/image/fetch/$s_!UVAf!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png 1272w, /__u/substackcdn.com/image/fetch/$s_!UVAf!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!UVAf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png" width="1456" height="568" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:568,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:131186,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/197443736?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!UVAf!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png 424w, /__u/substackcdn.com/image/fetch/$s_!UVAf!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png 848w, /__u/substackcdn.com/image/fetch/$s_!UVAf!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png 1272w, /__u/substackcdn.com/image/fetch/$s_!UVAf!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36f12a01-be90-4472-84aa-5ede7442b53e_1794x700.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The critical point is Fold 1 and Fold2:</p><blockquote><p><strong>some folds train on future data and validate on the past.</strong></p></blockquote><p>This is fundamentally different from Time Series CV.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!CmC5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!CmC5!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png 424w, /__u/substackcdn.com/image/fetch/$s_!CmC5!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png 848w, /__u/substackcdn.com/image/fetch/$s_!CmC5!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png 1272w, /__u/substackcdn.com/image/fetch/$s_!CmC5!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!CmC5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png" width="1456" height="1114" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1114,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:298117,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/197443736?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!CmC5!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png 424w, /__u/substackcdn.com/image/fetch/$s_!CmC5!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png 848w, /__u/substackcdn.com/image/fetch/$s_!CmC5!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png 1272w, /__u/substackcdn.com/image/fetch/$s_!CmC5!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d67cfd2-19d2-4176-8112-7ae6f7546b92_1726x1320.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) The Design Philosophy Behind the Four CV Methods</p><p>&#65288;Paid Section)<br>(2) What &#8220;Blocked&#8221; and &#8220;Gap&#8221; Really Mean<br>(3) The Real Meaning of &#8220;Only K-fold Looks Great&#8221;<br>(4) Meta-Overfitting: The Hidden Danger of Repeated Development<br>(5) Why Hyperparameter Tuning Often Fails to Fix It<br>(6) Practical Approaches for Narrowing the Gap<br>(7) Practical Conclusions<br>(8) Summary<br>(9) Next up</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-3">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[The True Role of Validation (CV) #2: Validation Is Not "Where the Model Gets Updated"]]></title><description><![CDATA[CV Is a Scoring Mechanism, Not a Reason to Run More Training Rounds]]></description><link>https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-2</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-2</guid><pubDate>Tue, 12 May 2026 12:01:04 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!xqrW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h2><strong>Validation Is Not &#8220;Where the Model Gets Updated&#8221;</strong></h2><h2><strong><br>Introduction</strong></h2><p>In the previous article, we covered two key points:</p><ul><li><p>Why predictions change</p></li><li><p>When the model changes (or doesn&#8217;t) in weekly operations</p></li></ul><p>Now we get to the heart of this series:</p><p><strong>The relationship between Validation (CV) and training.</strong></p><div><hr></div><p>When looking at the P123 screen, many people get the following impression:</p><blockquote><p><em>Is the model continuously improving while Validation is running?</em></p></blockquote><p>There is actually a common misconception here.</p><p>To cut straight to the conclusion:</p><p><strong>Validation is not &#8220;where the model gets updated.&#8221;<br>Validation is where the model gets scored.</strong></p><p>Understanding this distinction makes the behavior of CV immediately clear.</p><div><hr></div><h2><strong>(1) The Role of Validation Is &#8220;Scoring&#8221;</strong></h2><p>The basic structure of machine learning consists of three stages:</p><ol><li><p><strong>Training</strong></p></li><li><p><strong>Validation</strong></p></li><li><p><strong>Prediction</strong></p></li></ol><p>Of these, the role of Validation is to <strong>measure model performance.</strong></p><p>In other words, the validation data is <strong>data used for scoring the model.</strong></p><p>If you were to use the validation data to:</p><ul><li><p>modify splits, or</p></li><li><p>update leaf values,</p></li></ul><p>you would effectively be <strong>training on future data.</strong></p><p>This is <strong>data leakage.</strong></p><p>For this reason, the basic rule is simple:</p><blockquote><p><strong>Do not train on validation data.</strong></p></blockquote><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!xqrW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!xqrW!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png 424w, /__u/substackcdn.com/image/fetch/$s_!xqrW!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png 848w, /__u/substackcdn.com/image/fetch/$s_!xqrW!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png 1272w, /__u/substackcdn.com/image/fetch/$s_!xqrW!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!xqrW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png" width="1456" height="1149" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1149,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:242929,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/197305357?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!xqrW!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png 424w, /__u/substackcdn.com/image/fetch/$s_!xqrW!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png 848w, /__u/substackcdn.com/image/fetch/$s_!xqrW!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png 1272w, /__u/substackcdn.com/image/fetch/$s_!xqrW!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42ed54b-4ee0-4184-ae20-eea44c2f63b7_1718x1356.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) The Role of Validation Is &#8220;Scoring&#8221;</p><p>&#65288;Paid Section)<br>(2) So Why Does &#8220;Training&#8221; Run During Validation?<br>(3) What Validation Is Actually Deciding<br>(4) And the Model Used for Prediction Is Built Separately<br>(5) Summary<br>(6) Next Up</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-2">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[The True Role of Validation (CV) #1: Why Validation Is Difficult to Understand]]></title><description><![CDATA[Separating the Number of CV Runs from Changes in Weekly Predictions]]></description><link>https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-1</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-1</guid><pubDate>Tue, 05 May 2026 12:03:41 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!DRvn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h2><strong>Why Validation Is Difficult to Understand<br><br>Introduction</strong></h2><p>In the previous series, we explained the learning logic of LightGBM and Extra Trees, along with diagrams.</p><p>Starting from this article, we begin a new series that comprehensively covers validation, titled &#8220;<strong>The True Role of Validation (CV)</strong>&#8221;<br>We plan for this series to consist of approximately 6 articles in total.</p><p>The fundamentals of AI consist of Training and Inference.<br><br>However, <strong>in the AI Factor menu screen of Portfolio123 (P123), the interface is divided into &#8220;Validation&#8221; and &#8220;Prediction,&#8221; and there is no menu labeled &#8220;Training.&#8221;</strong></p><p>Why is it structured this way?</p><p><strong>One of the topics that readers most often find confusing is the relationship between Validation and Training.<br></strong><br>Understanding this relationship is one of the key hurdles that beginners of P123 AI factors need to overcome.</p><p>By reading this series, that confusion should become much clearer.</p><div><hr></div><p>When using P123, the following two ideas are often mixed together:</p><ol><li><p><strong>When the number of Validation splits (CV: Cross-Validation) increases, what exactly increases?</strong></p></li><li><p><strong>When predictions change every week, is it because the model itself changes every week?</strong></p></li></ol><p>Let us first present the conclusion.</p><p>The more CV splits there are,</p><blockquote><p>the more times models are created for evaluation.</p></blockquote><p>When Weekly predictions change every week,</p><blockquote><p>it does not necessarily mean the model itself has changed.</p></blockquote><p>Simply separating these two ideas already helps clarify the relationship among</p><ul><li><p>Training</p></li><li><p>Validation</p></li><li><p>Prediction</p></li></ul><p>considerably.</p><div><hr></div><h2><strong>(1) Two Terms We Should First Distinguish</strong></h2><p>In this series, we first separate the following two concepts:</p><ul><li><p>The model changes</p></li><li><p>The prediction changes</p></li></ul><p>These two ideas sound similar, but in reality they are completely different phenomena.</p><p>Much of the confusion begins here.</p><p><strong>&#8220;The Model Changes&#8221; and &#8220;The Prediction Changes&#8221; Are Different Things</strong></p><p>&#8212; Even with a fixed model, predictions move: stocks move inside the trees</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!DRvn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!DRvn!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png 424w, /__u/substackcdn.com/image/fetch/$s_!DRvn!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png 848w, /__u/substackcdn.com/image/fetch/$s_!DRvn!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png 1272w, /__u/substackcdn.com/image/fetch/$s_!DRvn!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!DRvn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png" width="1456" height="736" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:736,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:171084,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/196280965?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!DRvn!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png 424w, /__u/substackcdn.com/image/fetch/$s_!DRvn!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png 848w, /__u/substackcdn.com/image/fetch/$s_!DRvn!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png 1272w, /__u/substackcdn.com/image/fetch/$s_!DRvn!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F29c1ea17-9c19-4f74-8da5-70dbb9ca44e7_1666x842.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) Two Terms We Should First Distinguish</p><p>&#65288;Paid Section)<br>(2) What Does It Mean When the Model Changes?<br>(3) What Does It Mean When the Prediction Changes?<br>(4) Stocks Move Inside the Trees<br>(5) Two Patterns of Weekly Operation<br>(6) An Important Point About the 3MRel Target<br>(7) Next Up</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/the-true-role-of-validation-cv-1">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Visualizing the Learning Logic #9: LightGBM vs Extra Trees (2/2)]]></title><description><![CDATA[A model that builds many trees and returns the average]]></description><link>https://aidrivenquantinvestment.substack.com/p/visualizing-the-learning-logic-10</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/visualizing-the-learning-logic-10</guid><pubDate>Wed, 29 Apr 2026 06:52:09 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!HywK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h2>Introduction</h2><p>In this Substack <strong>&#8220;AI-Driven Quant Investment Strategies&#8221;</strong>, this series of posts is planned to be structured as follows, and this post is the second one.</p><h4><br><br>Visualizing the Learning Logic &#8212; ExtraTrees &amp; LightGBM</h4><p>Most ML comparisons focus on &#8220;which is more accurate&#8221; or &#8220;how results differ.&#8221;<br>This series instead focuses on the <em>learning logic itself</em>: what the algorithm is doing under the hood.</p><p>Planned total: <strong>~11 posts</strong> (subject to change)</p><ul><li><p>LightGBM learning logic: <strong>4 posts</strong></p></li><li><p>ExtraTrees learning logic: <strong>3 posts</strong></p></li><li><p>Comparing LightGBM vs. ExtraTrees learning logic: <strong>2 posts </strong>(&#8592; <strong>Now we are here</strong>)</p></li><li><p>Validation and training: <strong>2 posts</strong></p></li></ul><div><hr></div><h5>Assumptions for this series</h5><ul><li><p><strong>Target:</strong> 3MRel (3-month relative return)</p></li><li><p><strong>Universe:</strong> S&amp;P 500</p></li><li><p><strong>Features and hyperparameters:</strong> We won&#8217;t deep-dive here (planned for later series)</p></li></ul><div><hr></div><h1><strong>Comparing the Learning Logic of LightGBM and ExtraTrees (2/2)</strong></h1><p><br>Up to 8th post in this series, we have visualized the learning logic of LightGBM and Extra Trees separately. Starting with prior (9th) post, we summarize their learning logic in a <strong>comparative</strong> format.</p><h2><strong>Introduction: When does it swing back to &#8220;LightGBM tends to win&#8221;?</strong></h2><p>In the previous post, we dug into LightGBM&#8217;s weakness: <strong>when features are few and noise is large, LightGBM&#8217;s strength of &#8220;smartly chasing residuals&#8221; can turn into a weakness by chasing noise as well.</strong></p><p>This time, we explain the opposite: the cases where LightGBM&#8217;s strengths show up.<br>So&#8212;<strong>when does LightGBM tend to win?</strong></p><div><hr></div><h3><strong>(1) When the number of features increases and &#8220;good split candidates&#8221; increase</strong></h3><p>When conditions align, it often swings back to the side where &#8220;LightGBM tends to win.&#8221; The key point is that LightGBM&#8217;s strength&#8212;its ability to <strong>target residuals and improve step-by-step</strong>&#8212;is most powerful when it is applied to <strong>reproducible signal</strong>, not noise.</p><p>When features are few, LightGBM tends to dig into the same variables repeatedly and create &#8220;past-only thresholds.&#8221;<br>But when the number of features increases:</p><ul><li><p>you can explain the data from many different angles,</p></li><li><p>you don&#8217;t rely too heavily on a single feature, and you can build more natural splits,</p></li></ul><p>so boosting&#8217;s &#8220;smart correction&#8221; capability starts working more cleanly.</p><p>(In stock terms: it tends to be strong when you have a full set of factors&#8212;fundamentals, value, quality, momentum, positioning/flow, etc.)</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!HywK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!HywK!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png 424w, /__u/substackcdn.com/image/fetch/$s_!HywK!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png 848w, /__u/substackcdn.com/image/fetch/$s_!HywK!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png 1272w, /__u/substackcdn.com/image/fetch/$s_!HywK!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!HywK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png" width="1456" height="1220" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1220,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:388050,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/195496579?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!HywK!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png 424w, /__u/substackcdn.com/image/fetch/$s_!HywK!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png 848w, /__u/substackcdn.com/image/fetch/$s_!HywK!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png 1272w, /__u/substackcdn.com/image/fetch/$s_!HywK!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bdb8a35-9483-4076-a5b5-63f1c2fe19fe_1676x1404.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) When the number of features increases and &#8220;good split candidates&#8221; increase</p><p>&#65288;Paid Section)<br>(2) When noise decreases (= the target and features become more stable)<br>(3) When regularization, constraints, and validation design are working properly<br>(4) When you want to &#8220;hit the top bucket hard&#8221; (a regime with clear signal)<br>(5) When you have enough data and it does not collapse in walk-forward testing<br>(6) Summary</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/visualizing-the-learning-logic-10">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Visualizing the Learning Logic #8: LightGBM vs Extra Trees (1/2)]]></title><description><![CDATA[A model that builds many trees and returns the average]]></description><link>https://aidrivenquantinvestment.substack.com/p/visualizing-the-learning-logic-9</link><guid isPermaLink="false">https://aidrivenquantinvestment.substack.com/p/visualizing-the-learning-logic-9</guid><pubDate>Tue, 21 Apr 2026 12:04:05 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!D25v!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em><strong>Disclaimer:</strong> As a freelance analyst, my posts exclusively cover the AI methodologies of Portfolio123 (P123), without addressing individual stock recommendations.</em></p><p>This Post is included in <strong>Section 4: How to Effectively Choose Algorithms and Tune Hyperparameters.</strong><br>The table of contents is as follows:</p><p><a href="/__u/aidrivenquantinvestment.substack.com/publish/post/168862111">AI-Driven Quant Investment Strategies</a></p><div><hr></div><h2>Introduction</h2><p>In this Substack <strong>&#8220;AI-Driven Quant Investment Strategies&#8221;</strong>, this series of posts is planned to be structured as follows, and this post is the second one.</p><h4><br><br>Visualizing the Learning Logic &#8212; ExtraTrees &amp; LightGBM</h4><p>Most ML comparisons focus on &#8220;which is more accurate&#8221; or &#8220;how results differ.&#8221;<br>This series instead focuses on the <em>learning logic itself</em>: what the algorithm is doing under the hood.</p><p>Planned total: <strong>~11 posts</strong> (subject to change)</p><ul><li><p>LightGBM learning logic: <strong>4 posts</strong></p></li><li><p>ExtraTrees learning logic: <strong>3 posts</strong></p></li><li><p>Comparing LightGBM vs. ExtraTrees learning logic: <strong>2 posts </strong>(&#8592; <strong>Now we are here</strong>)</p></li><li><p>Validation and training: <strong>2 posts</strong></p></li></ul><div><hr></div><h5>Assumptions for this series</h5><ul><li><p><strong>Target:</strong> 3MRel (3-month relative return)</p></li><li><p><strong>Universe:</strong> S&amp;P 500</p></li><li><p><strong>Features and hyperparameters:</strong> We won&#8217;t deep-dive here (planned for later series)</p></li></ul><div><hr></div><h1><strong>Comparing the Learning Logic of LightGBM and ExtraTrees (1/2)</strong></h1><p><br>Up to this point, we have visualized the learning logic of LightGBM and Extra Trees separately. Starting with this post, we will summarize their learning logic in a <strong>comparative</strong> format.</p><h2><strong>Introduction: Why Extra Trees often performs better than LightGBM when features are few and the data is noisy</strong></h2><p>In one sentence, the reason Extra Trees tends to outperform LightGBM in regimes with <strong>few features</strong> and/or <strong>high noise</strong> is this:</p><p>Extra Trees has an advantage on the &#8220;average away the wobble&#8221; side in situations where LightGBM&#8217;s &#8220;ability to aggressively optimize and hit the target (sharp optimization)&#8221; is more likely to backfire.</p><p>Let&#8217;s unpack this in an investment-strategy context.<br></p><div><hr></div><h3><strong>(1) When there are few features, LightGBM can &#8220;over-dig the same small set of features&#8221;</strong></h3><p>In a world with few features, the model has limited &#8220;tools&#8221; available.</p><p>LightGBM (boosting) tends to reuse features that seem effective and create finer and finer conditional splits in order to reduce residuals.</p><p>As a result, it may start assigning meaning to tiny fluctuations in those few features (thresholds that happened to work), making it easier to over-optimize to the past.</p><p>Stocks are especially noisy, so the more you try to precisely &#8220;hit&#8221; using a small number of features, the more likely you are to pick up accidental boundaries&#8212;meaning the model is more likely to collapse in the future.</p><p>On the other hand, Extra Trees:</p><ul><li><p>randomizes both features and thresholds,</p></li><li><p>builds many trees and averages them,</p></li></ul><p>so even with only a few features, it tends to rely less excessively on any single tree (i.e., it tends to be less biased toward one fragile structure).</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!D25v!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!D25v!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png 424w, /__u/substackcdn.com/image/fetch/$s_!D25v!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png 848w, /__u/substackcdn.com/image/fetch/$s_!D25v!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png 1272w, /__u/substackcdn.com/image/fetch/$s_!D25v!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_webp, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!D25v!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png" width="1456" height="1119" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1119,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:354893,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aidrivenquantinvestment.substack.com/i/194586840?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!D25v!, /__u/aidrivenquantinvestment.substack.com/w_424, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png 424w, /__u/substackcdn.com/image/fetch/$s_!D25v!, /__u/aidrivenquantinvestment.substack.com/w_848, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png 848w, /__u/substackcdn.com/image/fetch/$s_!D25v!, /__u/aidrivenquantinvestment.substack.com/w_1272, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png 1272w, /__u/substackcdn.com/image/fetch/$s_!D25v!, /__u/aidrivenquantinvestment.substack.com/w_1456, /__u/aidrivenquantinvestment.substack.com/c_limit, /__u/aidrivenquantinvestment.substack.com/f_auto, /__u/aidrivenquantinvestment.substack.com/q_auto:good, /__u/aidrivenquantinvestment.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0eb99c8-9efa-46c5-bee1-491473fbcc78_1668x1282.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h2><strong>What the Paid Section Deeply Explores:</strong></h2><p><br>&#65288;Free Section)<br>(1) When there are few features, LightGBM can &#8220;over-dig the same small set of features&#8221;</p><p>&#65288;Paid Section)<br>(2) When noise is large, LightGBM is more likely to &#8220;chase noise as residual&#8221;<br>(3) The &#8220;power of averaging&#8221; works: variance goes down (= predictions become more stable)<br>(4) With few features &#215; high noise, differences show up more clearly in ranking-based operation<br>(5) Summary</p><div><hr></div><h3>Pricing Plans</h3><p>To continue learning highly specific and practical AI strategy construction methods, please consider a premium subscription.</p><ul><li><p><strong>Monthly Plan: $8 / Month, </strong>Flexible starter option</p></li><li><p><strong>Annual Plan: $80 / Year, 2 months free</strong> (approximately $6.67/month)</p></li></ul><p><strong>Subscribe now and advance to the next level of AI Quant Strategy!<br></strong></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://aidrivenquantinvestment.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="/__u/aidrivenquantinvestment.substack.com/subscribe"><span>Subscribe now</span></a></p><div><hr></div><p><strong>The following section is available to paid subscribers only.</strong></p>
      <p>
          <a href="/__u/aidrivenquantinvestment.substack.com/p/visualizing-the-learning-logic-9">
              Read more
          </a>
      </p>
   ]]></content:encoded></item></channel></rss>