<p dir="auto">The tutorial duplicates many of the examples already present.<br>
For example now there is a color quantization example and a grey-scale quantization example.</p>
<p dir="auto">Also, there are now three k-means examples.<br>
I'm pretty sure we can get rid of some.<br>
Maybe <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jaquesgrobler/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jaquesgrobler">@jaquesgrobler</a> can have a look?</p>
<p dir="auto">A few estimators like <code class="notranslate">Lasso</code> support the <code class="notranslate">warm_start</code> option.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="lasso = Lasso(warm_start=True)
scores = []
for alpha in alphas:
    lasso.set_params(alpha=alpha)
    lasso.fit(X_train, y_train)
    scores.append(lasso.score(X_test, y_test))"><pre class="notranslate"><span class="pl-s1">lasso</span> <span class="pl-c1">=</span> <span class="pl-v">Lasso</span>(<span class="pl-s1">warm_start</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">scores</span> <span class="pl-c1">=</span> []
<span class="pl-k">for</span> <span class="pl-s1">alpha</span> <span class="pl-c1">in</span> <span class="pl-s1">alphas</span>:
    <span class="pl-s1">lasso</span>.<span class="pl-en">set_params</span>(<span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-s1">alpha</span>)
    <span class="pl-s1">lasso</span>.<span class="pl-en">fit</span>(<span class="pl-v">X_train</span>, <span class="pl-s1">y_train</span>)
    <span class="pl-s1">scores</span>.<span class="pl-en">append</span>(<span class="pl-s1">lasso</span>.<span class="pl-en">score</span>(<span class="pl-v">X_test</span>, <span class="pl-s1">y_test</span>))</pre></div>
<p dir="auto">Due to how <code class="notranslate">GridSearchCV</code> is designed (use of <code class="notranslate">clone</code>, parallelism with <code class="notranslate">n_jobs</code>), setting the <code class="notranslate">warm_start</code> option wouldn't have any effect.</p>
<p dir="auto">It would be nice to create a grid search object which can benefit from warm-start. <code class="notranslate">n_jobs</code> could still be supported but should be with respect to cross-validation folds.</p>
<p dir="auto">This would require specifying with respect to what parameters the warm-starting must be done (e.g., <code class="notranslate">alpha</code> in the case of Lasso).</p>