Error percentage calculated in excel and matlab not matching. why?
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
I calculated error percentage for actual and predicted after ANN implementation using below code. Same I calculted using excel. both are not matching . why?
x = input';
t = output';
trainFcn = 'trainlm';  % Levenberg-Marquardt backpropagation.
hiddenLayerSize = 30;
net = fitnet(hiddenLayerSize,trainFcn);
net.divideParam.trainRatio = 80/100;
net.divideParam.valRatio = 10/100;
net.divideParam.testRatio = 10/100;
[net,tr] = train(net,x,t);
y = net(x);
e = gsubtract(t,y);
percentage_error = abs(t- y) / abs(t) * 100;
댓글 수: 1
  Cris LaPierre
    
      
 2023년 11월 28일
				Without the data, it is impossible for us to say. Save your variables to file and attach that to your post using the paperclip icon.
답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Analysis of Variance and Covariance에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

