Displaying 1 result from an estimated 1 matches for "img_and_label".
2003 Nov 24
2
Questions on Random Forest
...eadBin(datafile,size=2,what="integer",n=512*512,signed=FALSE)
img <- as.matrix(img)
close(datafile)
labelfile <- file(label.img","rb")
label <- readBin(labelfile,size=2,what="integer",n=512*512,signed=FALSE)
label <- as.matrix(label)
close(labelfile)
img_and_label <- c(img,label) // binds the image data and class label
img_and_label <- as.matrix(img_and_label)
img_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&quo...