- grnn神经网络
今天在做classification的作业时,用newrbe会报错,因为无法求解w2b2。
故使用grnn神经网络,其原理与rbf神经网络类似,但在第二层中直接赋予w2。无需求解。
temp=randperm(106);
p_train=matrix(:,temp(1:95));
t_train=label(:,temp(1:95));
p_test=matrix(:,temp(96:106));
t_test=label(:,temp(96:106));
net=newgrnn(p_train,t_train);
t_sim_grnn=sim(net,p_test);
T_sim_grnn=round(t_sim_grnn);
plot(1:11,t_test,'o',1:11,T_sim_grnn,'*')
%法一
temp=randperm(106);
p_train=matrix(:,temp(1:95));
t_train=label(: