出現 TypeError: __init__() got an unexpected keyword argument 'tol'
2019/10/18 10:59 上午
機器學習共學討論版
William Mok
觀看數:33
回答數:2
收藏數:0
ml100-3
ml100-3-d49
Day_49_Blending_HW 和 Day_049_Blending 出現以下Error,請問如何處理?
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-11-244b28c8e1bf> in <module>()
12 lr = LogisticRegression(tol=0.001, penalty='l2', fit_intercept=True, C=1.0)
13 gdbt = GradientBoostingClassifier(tol=100, subsample=0.75, n_estimators=250, max_features=20,
---> 14 max_depth=6, learning_rate=0.03)
15 rf = RandomForestClassifier(n_estimators=100, min_samples_split=2, min_samples_leaf=1,
16 max_features='sqrt', max_depth=6, bootstrap=True)
TypeError: __init__() got an unexpected keyword argument 'tol'