de r">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_train,
                   <span class="dt">label =</span> y,
                   <span class="dt">objectfun =</span> <span class="st">"multi:softmax"</span>,
                   <span class="dt">evalmetric =</span> <span class="st">"merror"</span>,
                   <span class="dt">n_folds =</span> <span class="dv">3</span>,
                   <span cl