📄 find_remodify_neurons.m
字号:
function [node_idx]=find_remodify_neurons(result2,err_idx,t_x,t_y)
% find out the neurons that need to be modified according to the changes
% imported to the training sets, this operation could be interpreted as
% finding out the most matching lymphocites to certain antigens
nodenum=size(result2,1);
err_len=length(err_idx);
neuron_idx=zeros(1,err_len);
% find out the most matching lymphocites by the distances between the
% centers of neurons within the network and the changed sets, the node who
% has the minimum distance to the certain antigens accordingly best matches
% the antigen
for k=1:err_len
tmp_dist=zeros(1,nodenum);
for i=1:nodenum
tmp_dist(i)=distance(result2(i,2:size(result2,2)-1),t_x(:,err_idx(k))');
end
[ignore,neuron_idx(k)]=min(tmp_dist);
end
node_idx=[];
for i=1:nodenum
if size(find(neuron_idx==i),2)>=5
node_idx=[node_idx,i];
end
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -