y to write column name to specify the label.</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="co"># This takes a lot of time</span>
<span class="co"># fashion data is included in this package</span>
res0 &lt;-<span class="st"> </span><span class="kw"><a href="../reference/xgb_cv_opt.html">xgb_cv_opt</a></span>(<span class="dt">data =</span> fashion,
                   <span class="dt">label =</span> y,
                   <span class="dt">objectfun =</span> <span 