stlenet,atGPU);
testNet.setTheta(cnn.theta);
testNet.calcLossAndErr();
fprintf(1,<span class="string">'Test loss= %f, Test accuracy = %f\n'</span>,testNet.Loss(1),1-testNet.Loss(2));
</pre><pre class="codeoutput">Test loss= 0.054117, Test accuracy = 0.982300
</pre><p class="footer"><br><a href="http://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2014b</a><br></p></div><!--
##### SOURCE BEGIN #####
%% a simple demonstration of the EasyConvNet code
% This code demonstrates the EasyConvNet p