how to convert categorical to numerical ?

3 views (last 30 days)
Rohith BANKA
Rohith BANKA on 13 Mar 2018
Answered: KSSV on 13 Mar 2018
I havae a CSV file(246 X 1) that has categorical data(names of different arrhythmia). I would like to use neural network toolbox to train the model. How can I convert this categorical data into numerical data and train the model?

Answers (1)

KSSV
KSSV on 13 Mar 2018
Check the below pseudo code......you can get it done with ease using unique.
load fisheriris.mat ;
[c,ia,ib] = unique(species) ;
iwant = ib ;

Community Treasure Hunt

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

Start Hunting!