how to preprocess dataset in neural network toolbox

hi, i am new to MATLAB and i want to preprocess cancer dataset so that it can be in the range [0,1]. i obtain that dataset from <http://mldata.org/repository/search/?searchterm=cancer&data=on&task=on&method=on&challenge=on> can any one please help me. thank you regards, Punam

 Accepted Answer

[ I N ] = size(p)
minp = repmat(min(p,[],2),1,N);
maxp = repmat(max(p,[],2)',1,N);
pn = (p-minp)./(maxp-minp);
Hope this helps.
Greg

2 Comments

hello greg
thanks again
i am using radial baisis function for training and esing of cancer data set. when i am using confusion matrix, it is giving wrong answers.
will u plz tell me how to plot graph for percentage accuracy.
thanks again.
Sorry. Have not used the newer version of newrb yet. Can you be more specific w.r.t. to what you wanted, what you did, and why you think it is wrong.
Greg
PS if you include code make sure it is well commented and wil run when cut and pasted into the command line.

Sign in to comment.

More Answers (0)

Categories

Find more on Biotech and Pharmaceutical in Help Center and File Exchange

Asked:

on 27 Feb 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!