www.gusucode.com > nnet 案例源码 matlab代码程序 > nnet/RefCrossentropyExample.m
%% RefCrossentropy % This example shows %% code % Copyright 2015 The MathWorks, Inc. [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)