新人求助~~ Error using ==> newff Input ranges has values
旧版本的MATLAB没有mapminmax函数,我改用premnmx函数源程序用mapminmax函数如下:
=mapminmax(input_train);
=mapminmax(output_train);
我把他改为
=premnmx(input_train,output_train);
inputn=inputn'; %主要是为了建立2-5-1 BP神经网络 没这句会提示输入矩阵不为两列
net=newff(inputn,outputn,5);
为什么会提示
Error using ==> newff
Input ranges has values in the second column larger in the values in the same row of the first column.
。。。。。
求助~~
if any(pr(:,1) > pr(:,2))
error('Input ranges has values in the second column larger in the values in the same row of the first column.')
end
你看看是不是pr的第一列的元素有比第二列的元素大的情况,第一列是最小值,第二列是最大值 madio 发表于 2013-7-4 06:51 static/image/common/back.gif
if any(pr(:,1) > pr(:,2))
error('Input ranges has values in the second column larger in the value ...
后来我把原来net=newff(inputn,outputn,5);
改为net=newff(minmax(inputn),outputn,5);就可以了
只是不懂为什么要求为最小和最大值。。
页:
[1]