"comment">% optional fields</span>
param.snapshotFile = <span class="string">'/tmp/snapshot'</span>; param.printIter = 100; param.printDecay = 0.9;
<span class="comment">% call Nesterov</span>
cnn.Nesterov(T,learning_rate,mu,lam,param);
<span class="comment">% plot convergence</span>
figure; plot(cnn.AllLoss'); title(<span class="string">'Nesterov'</span>); legend(<span class="string">'Train loss'</span>,<span class="string">'Train 0-1 error'</span>);
</pre><pre class="codeoutput">Iter: 100: 0.265366 0.0750