深度学习网络

深度学习 求解方程的代码

A = 1:10;
result(1:10) = 5;
W(1:10) = 0.1;
threhold(1:10)=0.5;
step = 0.1;% 每次走的步数
Y = W.*A;
P = [];
while abs(sum(sum(Y))-50)>=0.5
    Y = W.*A;
    d = result - Y;
    W = W+0.05.*d;
    Myans = sum(sum(Y));
    disp(Myans);
    P = [P Myans];
    pause(0.2);
end

    

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_38331049/article/details/88212167