Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Error while using predict function on extraTrees (R)

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles