简体   繁体   English

使用2个分类器进行集成学习

[英]Ensemble learning with 2 classifiers

I'm trying to combine 2 approaches to classifying my data, one comes from a SVM and another external classifier that gives out one or more labels as to what it thinks the observation point is. 我正在尝试将两种方法结合起来对数据进行分类,一种来自SVM,另一种来自外部分类器,它给出一个或多个标签,说明观察点是什么。 Is it possible to get these two classifiers to work together? 是否有可能让这两个分类器一起工作? Similar to what boosting does. 与增强功能类似。

I've noticed that in scikit's adaboost implementation, it takes in only 1 type of classifier. 我注意到在scikit的adaboost实现中,它只需要一种类型的分类器。 Further, the 2nd classifier that I have, which gives out 1 or more labels doesn't have any "weights" associated with it. 此外,我给出的第一个分类器,它给出了一个或多个标签,没有任何与之相关的“权重”。 How do I go about this? 我该怎么做?

There is a technique called stacked generalization, which basically takes the output of any K classifiers and trains a second layer classifier on top of this - so the input to the second layer classifier is the output of the first layer classifier. 有一种称为堆叠泛化的技术,它基本上取任何K分类器的输出并在此基础上训练第二层分类器 - 因此第二层分类器的输入是第一层分类器的输出。 You can either use crossvalidated and averaged label predictions, or predict_proba outputs, or some other metric. 您可以使用交叉验证和平均标签预测,或predict_proba输出,或其他一些指标。

A nice introductory link on this is here 在这一个很好的介绍链接在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM