Yes, it works! Thanks a lot! Now, i have another question...
When i try to use the tree for predict the value of the class with the
function "predict" the result is not a vector with TRUE or FALSE value (that
is what i want for every row of my test set) but is a sort of matrix with a
weight on the
Convert it to a factor?
Uwe Ligges
On 08.06.2011 10:44, Grifone wrote:
Thanks Sarah for the response; with the command
str(echoknn.train)
the coloumn "class" is a "logi" value (i think without any immagination that
is a logical value ). So, how can I handle this type of data?
Thanks a lot.
Thanks Sarah for the response; with the command
str(echoknn.train)
the coloumn "class" is a "logi" value (i think without any immagination that
is a logical value ). So, how can I handle this type of data?
Thanks a lot.
P.S. Yes, is a course assignment and i was hoping to solve this problem
(
It's likely that class is numeric and you actually want factor
(regression tree vs classification tree).
str(echoknn.train) will show you.
By saying, "I have to build a tree classifier" you make me think that
this is a course assignment. If it is, you should perhaps talk to your
instructor. If no
Hi to all, I'm new to this forum and new to R. I have to build a tree
classifier that has boolean values as response.
When I build the tree with:
echoknn.tree <- tree(class ~ ., data=echoknn.train)
where "class" is a coloumn of my dataset (echoknn.train) of boolean values,
the result is a tree wh
5 matches
Mail list logo