combo icon indicating copy to clipboard operation
combo copied to clipboard

stacking中基模型fit时自定义fit参数

Open pjgao opened this issue 4 years ago • 3 comments

比如xgb/lgb early stoping参数

pjgao avatar Aug 14 '19 14:08 pjgao

理论上stacking这里的input应该是你已经define好的classifiers,举个例子:

clf1 = XGBClassifier(max_depth=3, learning_rate=0.1)
clf2 = XGBClassifier(max_depth=5, learning_rate=0.05)

clfs = [clf1, clf2]
clf_meta = Stacking(clfs)

不知道这个是不是你想问的问题

yzhao062 avatar Aug 14 '19 14:08 yzhao062

这样来说也是,early stopping是不必要,不过像ligthgbm/catboost的categorical_feature特征应该是要用的吧,cat/lgb对cat特征的处理有的时候是优于一般的label encoder处理的

pjgao avatar Aug 14 '19 15:08 pjgao

这样来说也是,early stopping是不必要,不过像ligthgbm/catboost的categorical_feature特征应该是要用的吧,cat/lgb对cat特征的处理有的时候是优于一般的label encoder处理的

大佬最后有解决吗?就是有的函数fit里面有其他参数的时候,可以用吗?

zwh9437 avatar Aug 09 '21 08:08 zwh9437