w">matmul</span>(dataset$X, params$beta))))
    logLik =<span class="st"> </span>tf$<span class="kw">reduce_sum</span>(dataset$y *<span class="st"> </span>tf$<span class="kw">log</span>(yEstimated) +<span class="st"> </span>(<span class="dv">1</span> -<span class="st"> </span>dataset$y) *<span class="st"> </span>tf$<span class="kw">log</span>(<span class="dv">1</span> -<span class="st"> </span>yEstimated))
    <span class="kw">return</span>(logLik)
}</code></pre></div>
<p>Next we want to define our log-prio