r"><span id="cb9-1"><a href="#cb9-1"></a><span class="kw">summary</span>(mod)</span></code></pre>
</div>
<p>Obtaining predictions from the trained model is done with the <code>predict</code> method. By default, this returns the predicted tag (class label) for the image, but you can also get the predicted class probabilities by specifying <code>type=&quot;prob&quot;</code>.</p>
<div class="sourceCode" id="cb10">
<pre class="sourceCode r"><code class="sourceCode r"><span id="cb10-1"><a href="#cb10-1"></a>