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 parallel. Is neural network possible.
I am especially interested in the caret's train function which can do a grid search for optimal hidden layers and decay size. This take a long time to run on a single core.
Any help is appreciated.
Are looking to implement the algorithm or your resampling in parallel? If you're looking for the later all you have to do simply register the number of cores you would like to use via
registerDoMC()
and it will run those in parallel. Ex:Screenshot of 4 cores running:
doMC doesn't support R 3.2. you can use doParallel