MATLAB: KDD data set normalization

5g++

pls i need you guys help on how to normalize the KDD cup data set, or is some thing wrong with the code i have below.
% read excel file file from computer directory.
INPUT_P= xlsread('C:\Users\5GPROGRAMER\Desktop\WORKING DIRECTORY\PROJECT WORKING DIRECTORY\TRAINING DATA\TRAIN DATA1.xlsx');
TARGET_T= xlsread('C:\Users\5GPROGRAMER\Desktop\WORKING DIRECTORY\PROJECT WORKING DIRECTORY\TRAINING DATA\OUTPUT BINARY CODE2.xlsx');
TEST_DATA= xlsread('C:\Users\5GPROGRAMER\Desktop\WORKING DIRECTORY\PROJECT WORKING DIRECTORY\TRAINING DATA\sample test.xlsx');
% convert excel file to matrix ivp and ivt
ivp=INPUT_P';
ivt=TARGET_T';
testinputs=TEST_DATA';
% start data set normalization
[pn,minp,maxp,tn,mint,maxt]=premnmx(ivp,ivt);
% creat neural network
net=newff(minmax(pn),[5 5],{'tansig','purelin'},'trainrp')

Best Answer

1. I do not see where you have confirmed that you have obtained acceptable results from training. Where do you compare training output trainout = sim(net,ivp) with the training target ivt? Is
NMSE = mse(ivt-trainout)/mean(var(ivt',1)) << 1 ?
2. To use the testinput you have to normalize it, use sim, then unnormalize the answer.
Hope this helps.
Thank you for formally accepting my answer
Greg