      0, (1 - x)
        ) * self.scale_fn(self.clr_iterations)</code></pre>
</details>
</dd>
<dt id="ktrain.lroptimize.triangular.CyclicLR.on_batch_end"><code class="name flex">
<span>def <span class="ident">on_batch_end</span></span>(<span>self, batch, logs=None)</span>
</code></dt>
<dd>
<div class="desc"><p>A backwards compatibility alias for <code>on_train_batch_end</code>.</p></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def on_batch_end(