2
$\begingroup$

I'm trying to solve Quora Question Pairs with model stacking.

My first layers are:

  • CNN trained to predict the same target as whole model should
  • "Magic features" like question frequency in whole dataset

And the second is gradient boosting.

My first attempt was to train CNN on whole(with 10% to dev) train dataset and than train gradient boosting on the same split.

As expected it was terrible because GB learned that CNN almost always right.

So I split train data into 10 parts and trained 10 different CNN with 1 part as dev. Than I trained GB with CNN predictions on dev parts(so it's almost unseen data). And used average of 10 CNNs for same feature on test dataset.

The result was worse than gradient boosting applied to "magic features" alone.

Can you help me to identify my mistakes?

$\endgroup$
  • $\begingroup$ Hard to say without any numbers given but showing a CNN 1/10th of the data feels small. Did you try splitting your train into only two parts, train cnn on first and GB on second? $\endgroup$ – kbrose May 1 '18 at 16:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.