早教吧作业答案频道 -->其他-->
[net,tr]=train(net,P,T)这句在运行时总是说矩阵的行数或列数不正确是为什么啊?P=0.73150.03490.22740.72790.08060.26610.72320.14710.27310.64460.29720.28130.63190.35580.28500.63160.39340.31380.71220.07330.23210.6900
题目详情
[net,tr] = train(net,P,T)这句在运行时总是说矩阵的行数或列数不正确是为什么啊?
P =
0.7315 0.0349 0.2274
0.7279 0.0806 0.2661
0.7232 0.1471 0.2731
0.6446 0.2972 0.2813
0.6319 0.3558 0.2850
0.6316 0.3934 0.3138
0.7122 0.0733 0.2321
0.6900 0.1678 0.2973
0.6034 0.4790 0.3123
0.5949 0.5359 0.3309
0.5357 0.6949 0.4306
0.7158 0.1207 0.3840
0.6572 0.3405 0.4908
0.4440 0.7645 0.5211
0.3938 0.8784 0.5721
0.3470 0.9737 0.6928
0.6067 0.4845 0.3501
0.5952 0.5037 0.3625
0.5709 0.5938 0.3639
0.5392 0.6671 0.4061
0.5838 0.4604 0.3800
0.5791 0.6383 0.4341
0.4141 0.7847 0.5614
0.3770 0.8845 0.6196
0.5338 0.7170 0.4953
0.5228 0.7648 0.5210
0.3692 0.8050 0.5230
0.3368 0.9685 0.6774
T =
1.0000 0 0 0
0.8000 0.2000 0 0
0.6000 0.4000 0 0
0.4000 0.6000 0 0
0.2000 0.8000 0 0
0 1.0000 0 0
0.8000 0 0.2000 0
0.6000 0 0.4000 0
0.4000 0 0.6000 0
0.2000 0 0.8000 0
0 0 1.0000 0
0.8000 0 0 0.2000
0.6000 0 0 0.4000
0.4000 0 0 0.6000
0.2000 0 0 0.8000
0 0 0 1.0000
0 0.8000 0.2000 0
0 0.6000 0.4000 0
0 0.4000 0.6000 0
0 0.2000 0.8000 0
0 0.8000 0 0.2000
0 0.6000 0 0.4000
0 0.4000 0 0.6000
0 0.2000 0 0.8000
0 0 0.8000 0.2000
0 0 0.6000 0.4000
0 0 0.4000 0.6000
0 0 0.2000 0.8000
net=newff(minmax(P),[28],{'logsig','purelin'},'trainlm')
>> [net,tr]=train(net,P,T)
Error using ==> network.train
Targets are incorrectly sized for network.
Matrix must have 3 columns.
P =
0.7315 0.0349 0.2274
0.7279 0.0806 0.2661
0.7232 0.1471 0.2731
0.6446 0.2972 0.2813
0.6319 0.3558 0.2850
0.6316 0.3934 0.3138
0.7122 0.0733 0.2321
0.6900 0.1678 0.2973
0.6034 0.4790 0.3123
0.5949 0.5359 0.3309
0.5357 0.6949 0.4306
0.7158 0.1207 0.3840
0.6572 0.3405 0.4908
0.4440 0.7645 0.5211
0.3938 0.8784 0.5721
0.3470 0.9737 0.6928
0.6067 0.4845 0.3501
0.5952 0.5037 0.3625
0.5709 0.5938 0.3639
0.5392 0.6671 0.4061
0.5838 0.4604 0.3800
0.5791 0.6383 0.4341
0.4141 0.7847 0.5614
0.3770 0.8845 0.6196
0.5338 0.7170 0.4953
0.5228 0.7648 0.5210
0.3692 0.8050 0.5230
0.3368 0.9685 0.6774
T =
1.0000 0 0 0
0.8000 0.2000 0 0
0.6000 0.4000 0 0
0.4000 0.6000 0 0
0.2000 0.8000 0 0
0 1.0000 0 0
0.8000 0 0.2000 0
0.6000 0 0.4000 0
0.4000 0 0.6000 0
0.2000 0 0.8000 0
0 0 1.0000 0
0.8000 0 0 0.2000
0.6000 0 0 0.4000
0.4000 0 0 0.6000
0.2000 0 0 0.8000
0 0 0 1.0000
0 0.8000 0.2000 0
0 0.6000 0.4000 0
0 0.4000 0.6000 0
0 0.2000 0.8000 0
0 0.8000 0 0.2000
0 0.6000 0 0.4000
0 0.4000 0 0.6000
0 0.2000 0 0.8000
0 0 0.8000 0.2000
0 0 0.6000 0.4000
0 0 0.4000 0.6000
0 0 0.2000 0.8000
net=newff(minmax(P),[28],{'logsig','purelin'},'trainlm')
>> [net,tr]=train(net,P,T)
Error using ==> network.train
Targets are incorrectly sized for network.
Matrix must have 3 columns.
▼优质解答
答案和解析
肯定是不正确的.首先是错误信息里面已经说得很明白了Targets are incorrectly sized for network.Matrix must have 3 columns.你的T有四列,应该只有三列.神经网络输入和输出训练样本用列来体现,一列是一个输入,一列...
看了 [net,tr]=train...的网友还看了以下:
英语翻译广行无部伍行阵,就善水草屯,舍止,人人自便,不击刀斗以自卫,莫府省约文书籍事,然亦远斥候, 2020-06-12 …
“行阵和睦”中“行”的意思不要解释“行阵”,要光解释“行”. 2020-06-18 …
必能使行阵和睦行阵? 2020-06-18 …
线性代数行阵乘以列阵怎么算?要求给出具体的算法!比如列(1-1-1)行(23-1)一个列阵一个行阵 2020-06-18 …
catia中如何重新定义创建圆形阵列的参考点我想以这个红色的坐标点为参考对旁边的孔进行阵列,请问我 2020-06-27 …
成语“五花八门”最初出自军旅:“五花”是指五行阵(金、木、水、火、土),“八门”是指八门阵式八卦阵 2020-07-23 …
线性代数行阵乘以列阵怎么算 2020-11-17 …
线性代数行阵乘以列阵怎么算 2020-11-17 …
对“行”解释不正确的一项是A.凌余阵兮躐余行。(行走)B.陈胜、吴广皆次当行。(队伍,军队)C.必能 2020-12-14 …
雁群飞行时一般都是排成人字阵或一字斜阵,并定时交换左右位置。生物专家研究发现:雁群这一飞行阵势能够使 2020-12-15 …