Is it possible to run a neural network that uses MAE instead of MSE?
I am trying to create a neural network that describes the relationship between numerous factors and the binary outcome. This is the code that I have written so far.
clear all; format compactload ShotData;num_reps=20; C=[2 4 6]; n=length(A);I = A(1:n,C)'; T = B(1:n)';tic; for k=1:num_repsnet = feedforwardnet(10,'trainscg'); net = train(net,I,T); a = net(I);e = T - a; perf(1:num_reps) = mae(e)';endperf_final=mean(perf); z=toc;
I previously analyzed the data using logistic regression and then computed MAE. In order to be about to compare methods I need help to create a neural network that uses MAE.
Best Answer