简体   繁体   中英

Combining Two Classification Models

I'm new with machine learning, I have labeled data with 0 for normal and 1 for attack, The idea is like this:

I want to build a model that apply DT in the first level. The output from DT will be Either Normal or attack. Firstly if the data classified as attack by DT we alert, Secondly, if the data classified as a normal, we take the normal data and fed it to the second model (SVM) to double check if normal or attack.

I have read about ensemble learning, but most of these methods combine the models and take the average or weighting, Any idea how can we implement this? Thanks

You defined a rule for combining the two models, but why don't you let a model learn this rule?

You can train both DT and SVM on all the data. Then, take the output of both (the probability of normal), and feed this to another model (a DT for example) that will predict the final prediction.

In this way the last model (which is called super model), can learn if the right way to combine the models is average/weighting/max/min or your rule...

I hope it helps 😄

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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