 sample_weight=None, feature_names=None)</span>
</code></dt>
<dd>
<div class="desc"><p>Main loop for training</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def fit(self, X, y, sample_weight=None, feature_names=None):
    &#34;&#34;&#34;
    Main loop for training
    &#34;&#34;&#34;
    X, y, feature_names = check_fit_arguments(self, X, y, feature_names) 
    if sample_weight is not None:
        self.D = sample_weight

    X_grow, X_prune,