I have another doubt to trouble you...sorry for that...
I have taken the iris dataset as an example as the target variable is a categorical variable with 3 categories
Setosa
2)Versicolor
Virginica
Do we have to assign a number like 1 to Setosa 2 to Versicolor and 3 to Virginica and then convert it to a factor variable
OR
just convert it to a factor variable without assigning and number to each category....
Thanks,
Amod Shirke
It sounds like this question is unrelated to your original post. To maximize your ability to get help and the utility of extant threads for people who come across them, it's best to open a new topic in such situations.