caretEnsemble icon indicating copy to clipboard operation
caretEnsemble copied to clipboard

Add parallel option to predict.caretStack using foreach

Open zachmayer opened this issue 11 years ago • 6 comments
trafficstars

zachmayer avatar Nov 17 '14 04:11 zachmayer

Hi Zach, is this issue fixed now? I can probably help you with this. I am thinking sticking with apply for small data set and change to foreach for large data set.

terrytangyuan avatar Jul 23 '15 18:07 terrytangyuan

I'd be happy to get a pull request!

zachmayer avatar Jul 23 '15 18:07 zachmayer

Sure, but it looks like there are bugs in caretEnsemble? I ran the example code from predict.caretEnsemble both on iris data set and my own data set. Could you check? The error is as follows:

Error in setkeyv(value, key) : 
  4 arguments passed to .Internal(nchar) which requires 3

terrytangyuan avatar Jul 23 '15 19:07 terrytangyuan

Actually, I cleaned my environment and there's no more bug. Sorry. I'll work on this.

terrytangyuan avatar Jul 23 '15 19:07 terrytangyuan

try using devtools::load_all() instead.

zachmayer avatar Jul 23 '15 19:07 zachmayer

Then do devtools::test() and devtools::check() when you're done writing code.

zachmayer avatar Jul 23 '15 20:07 zachmayer