@sadashivb wrote:
When I use predict function on extraTrees object I get following error -
_Error in .jcall(et$jobject, "[D", "getValues", toJavaMatrix2D(newdata)) : _
_ java.lang.NullPointerException_anyone has a way to resolve this ?
my model:
model_exTree_500 <- extraTrees(as.matrix(train[,features_exT]),as.factor(train$PredCol),
ntree=500,
nodesize=1,
numThreads=5,
mtry = sqrt(ncol(train))
)Predict function:
pred_exTree <- predict(model_exTree_500, as.matrix(test[,features_exT]))
Posts: 1
Participants: 1