search for: image_and_label

Displaying 1 result from an estimated 1 matches for "image_and_label".

2003 Nov 24
2
Questions on Random Forest
...and_label <- array(img_and_label, dim=c(262144,2)) Random Forest need a class label like "Species" in the iris. I do not know how to set a class label like "Species" to the img. So I run the command as follows: set.seed(166) rf <- randomForest(img_and_label[,2],data=image_and_label,importance=TRUE, proximity=TRUE) which outputs: Error in if (n == 0) stop("data (x) has 0 rows") : argument is of length zero Could anyone tell what is wrong and how can do the RF? Secondly, if there is an new image , say img3 (dimension is 512x512,too), how can I use the for...