Rパッケージcaretを使用していますが、並列処理が機能しません。train
関数からexampleを実行しようとすると、次のようになります。
library(mlbench)
data(BostonHousing)
library(doMC)
registerDoMC(2)
## NOTE: don't run models form RWeka when using
### multicore. The session will crash.
## The code for train() does not change:
set.seed(1)
usingMC <- train(medv ~ .,
data = BostonHousing,
"glmboost")
次のエラーが発生します。
Error in names(resamples) <- gsub("^\\.", "", names(resamples)) :
attempt to set an attribute on NULL
私はMacBookPro、2.3GHz IntelCorei5およびMacOSX10.6.8を搭載した2011年初頭のモデルを使用しています。
Rセッション情報:
Rバージョン2.13.0(2011-04-13)プラットフォーム:x86_64-apple-darwin9.8.0 / x86_64(64ビット)
添付の基本パッケージ:[1]統計グラフィックgrDevicesutils
データセットメソッドベースその他の添付パッケージ:[1] caret_5.13-20 cluster_1.14.2 reshape_0.8.4 plyr_1.7.1lattice_0.19-33 mlbench_2.1-0
doMC_1.2.3 multicore_0.1-7 [9] foreach_1.3.2 codetools_0.2-8 iterators_1.0.5名前空間を介してロードされます(接続されていません):[1]compiler_2.13.0 grid_2.13.0 rpart_3.1-51 tools_2.13.0
これを修正するために私にできることはありますか?