I use xgb.cv and xgboost in R. However, it does not work as parallel
My sample code following
library(xgboost)
library(parallel)
param <- list("objective" = "reg:logistic"
, "eval_metric" = "logloss"
,"nthread" = 8
,"bst:eta" = .025
,"bst:max_depth" = 3
,"lambda" = 1
,"lambda_bias" = 0
,"alpha" = .8
,"min_child_weight" = 3
,"subsample" = .9
,"colsample_bytree" = .6)
bst.cv3 = xgb.cv(param=param, data = x, label = y,
nfold = 3, nrounds=cv.nround, missing = NA
,prediction = TRUE)
However, the above code does not work. What should I do to make them parallel?
I found this on xgboost and github website
However i cant run
brew install clang-omp
or
brew install gcc
also does not work with sudo Thank you
source
share