search for: forest_model

Displaying 2 results from an estimated 2 matches for "forest_model".

2012 Sep 27
1
Random Forest - Extract
...bject called predicted which I believe is a vector. To view the detail for my testset I use the below-bind the columns together. I was trying to do something similar for my trainset but without putting it through the predict function. Instead taking directly from the randomForest which I stored in FOREST_model. I really need to get to this information to do some comparison of certain cases. RF_DTL<-cbind(testset,predict(FOREST_model, testset, type="response")) 2. In the RF model in R the predict function has three possible arguments: "response", "vote" or "...
2013 Jan 15
1
Random Forest Error for Factor to Character column
...if I exclude "JOBTITLE". So I then converted that column to a character vector: > TRAINSET$JOBTITLE<-as.character(TRAINSET$JOBTITLE) I ran Random Forest and got the below error. Why isn't this working? What do I need to do to get this working? > library(randomForest) > FOREST_model <- randomForest(as.factor(TARGET)~., data=trainset, mtry=4, ntree=1000, + importance=TRUE, do.trace=100) Error in randomForest.default(m, y, ...) : NA/NaN/Inf in foreign function call (arg 1) In addition: Warning message: In data.matrix(x) : NAs introduced by coerci...