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

gamLoess crashes R GUI in parallel mode #25

Open
tobigithub opened this issue Dec 30, 2015 · 1 comment
Open

gamLoess crashes R GUI in parallel mode #25

tobigithub opened this issue Dec 30, 2015 · 1 comment
Labels

Comments

@tobigithub
Copy link
Owner

gam_1.12 under caret_6.0-58 crashes R-GUI (hard error) under Windows

# load caret and DT the cars data set
require(caret); require(DT);  require(mlbench);
library(AppliedPredictiveModeling)
data(solubility)

# load the data and coerce into single frame (legacy)
training_data = data.frame(solTrainX,solTrainY)[1:20,]
testing_data = data.frame(solTestX,solTestY)

# just rename columsn to stay conform with style below
colnames(training_data)[colnames(training_data) == 'solTrainY'] <- 'y'
colnames(testing_data)[colnames(testing_data) == 'solTestY'] <- 'y'


# all the training data (just named x and y)
y <- training_data$y
x <- training_data[, -ncol(training_data)]

# load all libraries
library(doParallel); cl <- makeCluster(8); registerDoParallel(cl)

train(x,y,"gamLoess")

# stop the parallel processing and register sequential front-end
stopCluster(cl); registerDoSEQ();
@tobigithub tobigithub added the bug label Dec 30, 2015
@tobigithub
Copy link
Owner Author

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

No branches or pull requests

1 participant