"cb12-1"><a href="#cb12-1"></a><span class="co"># publish to the prediction resource we created above</span></span>
<span id="cb12-2"><a href="#cb12-2"></a><span class="kw">publish_model</span>(mod, <span class="st">&quot;iteration1&quot;</span>, pred_res)</span></code></pre>
</div>
<p>Once a model has been published, we can obtain predictions from the prediction endpoint in a manner very similar to previously. We create a predictive service object with <code>classification_service</code>, and then call 