集成方法入門

Python 的 Ensemble 方法

Román de las Heras

Data Scientist, Appodeal

選出最佳模型

individual-models.png

Python 的 Ensemble 方法

問卷調查

shutterstock_253684528.jpg

2018-10-29_22-54-45.png

Python 的 Ensemble 方法

先備知識

  • 使用 scikit-learn 的監督式學習
  • Python 的樹為基礎模型機器學習
  • Python 的線性分類器

scikit-learn-logo-small.png

Python 的 Ensemble 方法

使用技術

scikit-learn-logo-small.png

  • scikit-learn
  • numpy
  • pandas
  • seaborn

mlxtend-logo.png

from sklearn.ensemble import MetaEstimator

# Base estimators est1 = Model1() est2 = Model2() estN = ModelN()
# Meta estimator est_combined = MetaEstimator( estimators=[est1, est2, ..., estN], # Additional parameters )
# Train and test est_combined.fit(X_train, y_train) pred = est_combined.predict(X_test)
Python 的 Ensemble 方法

學員們,集成!

Python 的 Ensemble 方法

Preparing Video For Download...