集成方法简介

Python 中的集成方法

Román de las Heras

Data Scientist, Appodeal

选择最优模型

单个模型

Python 中的集成方法

调查

调查问卷照片

调查结果图表

Python 中的集成方法

先修知识

  • 使用 scikit-learn 的监督学习
  • Python 树模型机器学习
  • Python 线性分类器

scikit-learn-logo-small.png

Python 中的集成方法

技术栈

scikit-learn 标志

  • scikit-learn
  • numpy
  • pandas
  • seaborn

mlxtend 标志

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 中的集成方法

学习器,集合上阵!

Python 中的集成方法

Preparing Video For Download...