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