模拟退火算法matlab实现.docVIP

  • 18
  • 0
  • 约8.6千字
  • 约 21页
  • 2016-09-29 发布于安徽
  • 举报
模拟退火算法matlab实现 复制代码 function outPut=Activation_func(x,w) temp=x*w; outPut=temp; [rows cols]=size(temp); for i=1:rows ???? for j=1:cols ???????? outPut(i,j)=1/(1+exp(-temp(i,j))); ???? end end 复制代码 function outPut=adjust_randWeight(T) outPut=zeros(1); Delta_W=0.5*T*tan(rand(1)); outPut=Delta_W; 复制代码 clear %Receive input firstLayer_Neural_Num=input(This is the 1st layer.How many neurals do you want to use???); secondLayer_Neural_Num=input(This is the 2nd layer.How many neurals do you want to use???); thirdLayer_Neural_Num=input(This is the 3rd layer.How many neurals do

文档评论(0)

1亿VIP精品文档

相关文档