ith this in place we can define the <code>logLik</code> function as follows</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">logLik =<span class="st"> </span>function(params, dataset) {
    yEstimated =<span class="st"> </span><span class="dv">1</span> /<span class="st"> </span>(<span class="dv">1</span> +<span class="st"> </span>tf$<span class="kw">exp</span>( -<span class="st"> </span>tf$<span class="kw">squeeze</span>(params$bias +<span class="st"> </span>tf$<span class="k