Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSE with parallel computation #10

Open
aparrar1 opened this issue Mar 4, 2019 · 0 comments
Open

MSE with parallel computation #10

aparrar1 opened this issue Mar 4, 2019 · 0 comments

Comments

@aparrar1
Copy link

aparrar1 commented Mar 4, 2019

I am using quantregForest with parallel computation and I have noticed that the mean squared error values are not getting calculated when using the parallel option. I am not sure why this is happening, looking at the parallelRandomForest code it looks like mse should be part of the output of the function.

Following the example in the documentation:

library("randomForest")
library("quantregForest")
library("parallel")

data(airquality)
set.seed(1)
airquality <- airquality[ !apply(is.na(airquality), 1,any), ]
n <- nrow(airquality)
indextrain <- sample(1:n,round(0.6*n),replace=FALSE)
Xtrain <- airquality[ indextrain,2:6]
Ytrain <- airquality[ indextrain,1]

qrf <- quantregForest(x=Xtrain, y=Ytrain, keep.inbag = TRUE, importance=TRUE)
qrf$mse
plot(qrf)

qrf <- quantregForest(x=Xtrain, y=Ytrain, keep.inbag = TRUE, importance=TRUE, nthreads=10)
qrf$mse
NULL
plot(qrf)
Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), :'data' must be of a vector type, was 'NULL'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant