pt</code> package.</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(MlBayesOpt)

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> agaricus.train<span class="op">$</span>data,
                   <span class="dt">label =</span> agaricus.train<span class="op">$</span>label,
                   <span class="dt">objectfun =</span> <span class="st">"binary:l