s="kw">c</span>(<span class="dv">1</span>:<span class="dv">1000</span>),,]
iterations =<span class="st"> </span><span class="kw">seq</span>(<span class="dt">from =</span> <span class="dv">1</span>, <span class="dt">to =</span> <span class="dv">10</span>^<span class="dv">4</span>, <span class="dt">by =</span> <span class="dv">10</span>)
logLoss =<span class="st"> </span><span class="kw">rep</span>(<span class="dv">0</span>, <span class="kw">length</span>(iterations))
<span class="co"># Calculate log loss eve