[討論] newff辨視圓

看板MATLAB作者 (^___^)時間6年前 (2019/02/11 12:18), 6年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
大家好, 我是上幾篇要找圓的, 有好心人叫我用類神經找圓, 我努力用了, 但為什麼跑不動? matlab跑出說這行有問題[net,tr]=train(net,p,t); 有些貼上字題有問題請見諒 請教matlab強者, 我寫的那有問題? 謝謝 <( _ _ )> t1.jpg t2.jpg 是訓練的圓圖檔 ====== clear all; %define the input and output s=imread('t1.jpg'); for m=1:6300 p(m,1)=s(m); end s=imread('t2.jpg'); for m=1:6300 p(m,2)=s(m); end s=imread('t3.jpg'); for m=1:6300 p(m,3)=s(m); end t=[1 1 1 ]; net=newff(p,t,[24,1],{'tansig' 'purelin'},'trainlm'); net.trainparam.goal=50; net.trainparam.epochs=5000; [net,tr]=train(net,p,t); iw1=net.IW{1}; b1=net.b{1}; lw2=net.LW{2}; b2=net.b{2}; save netkohler net -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.52.166.236 ※ 文章網址: https://www.ptt.cc/bbs/MATLAB/M.1549858711.A.097.html ※ 編輯: g318 (27.52.166.236), 02/11/2019 12:19:32
文章代碼(AID): #1SOFUN2N (MATLAB)
文章代碼(AID): #1SOFUN2N (MATLAB)