R caret nnet package in Multicore

后端 未结 2 492
误落风尘
误落风尘 2020-12-31 14:51

Can we train a neural network model in parallel using multicores by leveraging foreach package, nnet and caret packages ?

I only see randomforest implementation in p

2条回答
  •  -上瘾入骨i
    2020-12-31 15:12

    doMC doesn't support R 3.2. you can use doParallel

    library(doParallel);
    cl <- makeCluster(detectCores())
    registerDoParallel(cl)
    tc <- trainControl(method="boot",number=25)
    train(Species~.,data=iris,method="nnet",trControl=tc)
    stopCluster(cl)
    

提交回复
热议问题