|
"us " <us@neurol.unizh.ch> wrote in message <hkn6l0$51v$1@fred.mathworks.com>...
> "chris Austin" <christianaugustine@yahoo.com> wrote in message <hkm6uj$f0l$1@fred.mathworks.com>...
> > Here i am trying to parse a 160-by-120 binary image size to the neural network but it throwing exceptions i don't understand. can someone help me out on how to put an image to the NNs? i also tried to flatten the image before passing it in but same error.
> >
> > input = image; %160-by-120 binary image size(basically just black and white)
> > target = [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
>
> a hint:
> - 1st: do NOT name a variable INPUT as this is a built-in ML function...
> - 2nd: try
>
> img=double(image);
> % ...
>
> us
thanks very much for your reply.
I have followed you instructions but i got a different set of errors this time.
here is the code I ran......
img=imread('1000001.png');
target1 = [0,0,0,0,0,1,0,0,0,0,0];
ims = double(img);
net = newfit(ims,target1,10);
and the error i get is..........
Error in ==> fixunknowns>new_process at 87
unknown_rows = ~isfinite(sum(x,2))';
Error in ==> boiler_process at 136
[out1,out2] = new_process(in1,in2); y =[]; % MATLAB BUG if [out1,y] =...
Error in ==> fixunknowns at 65
boiler_process
Error in ==> network.subsasgn>calcProcessSettings at 1087
[p2,ps] = feval(ithFcn,p,paramValues{:});
Error in ==> network.subsasgn>setInputProcessFcns at 961
[processSettings,p] = calcProcessSettings(p,processFcns,processParams);
Error in ==> network.subsasgn at 106
[net,err] = setInputProcessFcns(net,i,processFcns);
Error in ==> newff>new_5p1 at 145
net.inputs{1}.processFcns = ipf;
Error in ==> newff at 89
net = new_5p1(varargin{:});
Error in ==> newfit at 67
net = newff(varargin{:});
|