%% RefCrossentropy
% This example shows
%% code

[x,t] = iris_dataset;
net = patternnet(10);
net.performParam.regularization = 0.1;
net = train(net,x,t);
y = net(x);
perf = crossentropy(net,t,y,{1},'regularization',0.1)

% Copyright 2015 The MathWorks, Inc.