希望我讀這個錯誤,但在XGBoost庫documentation,有注意到使用feature_importances_提取功能重要性屬性很像sklearn的隨機森林。 然而,出於某種原因,我不斷收到此錯誤:AttributeError: 'XGBClassifier' object has no attribute 'feature_importances_' 我的代碼片段如下: from skl
這個問題是基於: xgboost in R: how does xgb.cv pass the optimal parameters into xgb.train 我試圖循環類似,不同的參數: for (iter in 1:100){
param <- list(objective = "binary:logistic",
eval_metric = "auc",