Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
208 views
in Technique[技术] by (71.8m points)

python - XGBoost Warning this may not be accurate

I am trying to train an XGBoost algorithm and I get the following warning :

This may not be accurate due to some parameters are only used in language bindings but
  passed down to XGBoost core.  Or some parameters are not used but slip through this
  verification. Please open an issue if you find above cases.

Is this something I should worry about?

This is my code:

df_train = pd.read_csv("FullEugFinal.csv ")
y_train = df_train.loc[:, 'CLASS']
x_train = df_train.loc[:, 'F2ND': 'RMS39']
model = XGBClassifier()
estimators = []
estimators.append(('standardize', StandardScaler()))
estimators.append(('xgb', XGBClassifier(silent=False,
                      n_jobs=1,
                      scale_pos_weight=1,
                      learning_rate=0.009,
                      colsample_bytree = 0.4,
                      subsample = 0.8,
                      objective='binary:logistic',
                      n_estimators=1100,
                      reg_alpha = 0.3,
                      max_depth=4,
                      gamma=0)))
model = Pipeline(estimators)
# define evaluation procedure
kfold = RepeatedStratifiedKFold(n_splits=10,n_repeats=3, random_state=6)
cv_relusts = cross_val_score(model, x_train, y_train, cv=kfold, scoring='accuracy')
question from:https://stackoverflow.com/questions/65902818/xgboost-warning-this-may-not-be-accurate

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...