그것은 XGBoost병렬 XGBoost 기계 학습 기술에
의병렬 구현
나는 그것을 매개 변수를 제공하여 XGBoost 실행을 최적화하기 위해 노력하고 함께해야 할 nthread = 16 내 시스템이있다 24 코어. 그러나 모델을 교육 할 때 모델 교육을받는 동안 어느 시점에서든 CPU 사용률의 약 20 %를 넘지 않는 것처럼 보입니다. 다음과 같이 코드는 다음과 같습니다 -
param_30 <- list("objective" = "reg:linear", # linear
"subsample"= subsample_30,
"colsample_bytree" = colsample_bytree_30,
"max_depth" = max_depth_30, # maximum depth of tree
"min_child_weight" = min_child_weight_30,
"max_delta_step" = max_delta_step_30,
"eta" = eta_30, # step size shrinkage
"gamma" = gamma_30, # minimum loss reduction
"nthread" = nthreads_30, # number of threads to be used
"scale_pos_weight" = 1.0
)
model <- xgboost(data = training.matrix[,-5],
label = training.matrix[,5],
verbose = 1, nrounds=nrounds_30, params = param_30,
maximize = FALSE, early_stopping_rounds = searchGrid$early_stopping_rounds_30[x])
내가 CPU 사용률을 높이고 효율적인 실행을 위해 모델 훈련을 가속화 할 수있는 방법에 (가능 경우) 나에게 설명해주십시오. R의 코드는 더 깊은 이해를 돕기 위해 사용됩니다.
가정은 : - ... 당신은 훨씬에 지출
이 XGBoost
에 오신 것을 환영 SO합니다 - 당신은 [재현 예 (http://stackoverflow.com/questions/5963269/how-to을 제공시겠습니까 -make-a-great-r-reproducible-example) – C8H10N4O2