Skip to content
Minsing Log
Go back

English Edition

Blending

Data & ML

I am struggling in a military internet café for the Jeju Island traffic volume prediction competition. I wanted to apply as many of the various techniques I had learned as possible. Since the computers at the military internet café can run models only within a limited amount of time, I wanted to try blending, which is somewhat less time-consuming than stacking.

What is blending?

It is one of the ensemble techniques: several weak models are trained on the train data, and predictions are made for the validation set and test set. After respectively concatenating the multiple validation prediction sets and test prediction sets, the concatenated validation prediction set and y_val are used to train a powerful meta-model. The meta-model then makes predictions using the previously concatenated test prediction sets.

How do you do it?

Structure

Procedure

  1. Split the train set into a training set and a validation set using a train-test split
  2. Train several weak models using the train data
  3. Use the trained models to predict the validation set and test set
  4. Respectively concatenate the multiple validation prediction sets and test prediction sets.

cf) 1 - Elements for val when concatenating (the previously split X_val and the byproducts that were predicted) 2 - Elements for test when concatenating (the previously split test and the byproducts that were predicted)
5. Fit the concatenated validation set and y_val to a powerful meta-model. 6. Use the meta-model to predict the previously concatenated test prediction sets.

Nice explanations

https://slowsteadystat.tistory.com/21 https://3months.tistory.com/486 -> In the example code from the second link, it seems that y_test for the score was separated into x_test and y_test from the test set when the train set was initially divided into a validation set and a test set in order to calculate the score.

Source:

  1. Blending structure image: https://slowsteadystat.tistory.com/21

공개 여정 구독

글이 올라오면 이메일로 보내드릴게요.

개발, 창업, 배움, 실패와 회고를 짧고 솔직하게 기록합니다. 검색으로 스쳐가는 독자가 아니라 여정을 따라오는 팬을 만들기 위한 뉴스레터입니다.

뉴스레터는 준비 중입니다. 그동안 RSS 로 구독하거나 이메일 로 알림을 요청해 주세요.


Share this post:

Comments

Sign in with GitHub to leave a comment.


Previous Post
Python Class Terminology Summary
Next Post
Hyperparameter