4
我有我自己的分類器,它是用python編寫的。 我想用adaboostclassifier方法使用該分類器。 在線提供的一個示例是link。如何使用sklearn的adaboost方法使用您自己的自定義分類器?
鍵控代碼行如下
clf_2 = AdaBoostRegressor(DecisionTreeRegressor(max_depth=4),
n_estimators=300, random_state=rng)
它結合了與DecisionTreeRegressor升壓。
我在想,我們怎麼能給定製的分類方法。
需要哪些方法來實現,數據格式等
是否有可能在網上遵循的代碼? 任何代碼示例,可以演示,插入您的自定義分類器。
鏈接到「Rolling your own estimator」更新的鏈接:http://scikit-learn.org/stable/developers/contributing.html#rolling-your-own-estimator –