Click here to Skip to main content
14,664,481 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have a dataset, there are both discrete and continuous data in it. some of the discrete data are not numerical data.

If I want to use some algs in stats toolbox such like decision tree or naive bayes, do I need to modify the data, like to change discrete "text" data to discrete "numerical" data?

My training data file is ".data" file, can I use fread fun in matlab to read it?~
So confused about whether or not I need to modify the data to make all values "number".

Thanks guys.

I find it can not load the data with "unknown text", thus I need to modify the data...
Is that right~?

Does anyone get a clue?
Updated 16-Nov-11 8:57am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100