How to define my TestRows,Testinput and Testoutput?
이전 댓글 표시
Hi, I don't know why my TestRows,Testinput and Testoutput are all empty matrix? Can help me explain?
[x, minx, maxx] = premnmx ([900:70:1600; 150:45:600; 200:50:700]); [y, miny, maxy] = premnmx ([0:0.1:1]);
Input = x'; Output = y'; trainn = 11; Train = randperm (size (Input, 1))'; TrainRows = Train (1:trainn); Traininput = Input (TrainRows,:); Trainoutput = Output (TrainRows,:); TestRows = Train (trainn+1:end); Testinput = Input (TestRows,:); Testoutput = Output (TestRows,:); a = Traininput'; b = Trainoutput'; g = Testinput'; h = Testoutput'; net = newff(minmax(a),[11,1],{'tansig','purelin'},'trainbr'); net = init(net); net.trainParam.show = 100; net.trainParam.epochs = 5000; net.trainParam.goal = 0; [net,tr] = train(net,a,b);
c = sim (net,a); d = sim (net,g);
댓글 수: 1
per isakson
2013년 12월 12일
편집: per isakson
2013년 12월 12일
The button [{}Code] could make your code readable!
Obsolete Functions: premnmx as of R2006a according to the release notes.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Univariate Discrete Distributions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!