[問題] 類神經網路 Bug 錯誤...

看板MATLAB作者 (三上真史)時間18年前 (2006/08/29 17:10), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/1
各位大大... 小弟剛剛初試啼聲創建了一個倒傳遞類神經程式... function test1 P = [0 1 2 3 4 5 6 7 8 9 10]; T = [0 1 2 3 4 3 2 1 2 3 4]; net = newff(minmax(P),[5 1],{'tansig' 'purelin'},'traingd'); net.trainParam.show = 100; net.trainParam.lr = 0.05; net.trainParam.epochs = 500; [net.tr] = train(net,P,T); 去Run 確實可以Run 也有圖形出來... 可是還是出現下面的訊息 好像是說有錯誤...= = 有哪位大大可以幫我解釋一下嗎??? ??? Error using ==> network.subsasgn Reference to non-existent field. Error in ==> test1 at 10 [net.tr] = train(net,P,T); TRAINGD-calcgrad, Epoch 0/500, MSE 12.729/0, Gradient 14.86/1e-010 TRAINGD-calcgrad, Epoch 100/500, MSE 0.082174/0, Gradient 0.133331/1e-010 TRAINGD-calcgrad, Epoch 200/500, MSE 0.044553/0, Gradient 0.0500553/1e-010 TRAINGD-calcgrad, Epoch 300/500, MSE 0.0383653/0, Gradient 0.0234007/1e-010 TRAINGD-calcgrad, Epoch 400/500, MSE 0.0366584/0, Gradient 0.0146977/1e-010 TRAINGD-calcgrad, Epoch 500/500, MSE 0.0358333/0, Gradient 0.0113496/1e-010 TRAINGD, Maximum epoch reached, performance goal was not met. ??? Error using ==> network.subsasgn Reference to non-existent field. Error in ==> test1 at 10 [net.tr] = train(net,P,T); -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.73.164.48

09/01 11:17, , 1F
"net"這個structure裡面沒有tr這個元素吧
09/01 11:17, 1F

09/01 11:19, , 2F
把訓練結果存回net,或是指定給一個新的net也可以
09/01 11:19, 2F
文章代碼(AID): #14z0IZSe (MATLAB)
文章代碼(AID): #14z0IZSe (MATLAB)