{
  "id": 59696,
  "title": "Is stacking working for you?",
  "url": "/competitions/avito-demand-prediction/discussion/59696",
  "author_name": "",
  "post_date": "2018-06-26T06:03:44.974303600Z",
  "votes": 5,
  "comment_count": 22,
  "views": 0,
  "content": "<p>Hey there guys,</p>\n\n<p>are you having success with stacking? We didn't put much effort in it so far but from preliminary trials it seems like it doesn't improve over simple blending of our best submissions. </p>\n\n<p>Is someone else experiencing the same? If not, what are you guys using? Linear or nonlinear models for the stack? A mix of them? Thanks</p>\n\n<p>Cheers.</p>",
  "messages": [
    {
      "id": "348115",
      "postDate": "06/26/2018 06:03:44",
      "content": "<p>Hey there guys,</p>\n\n<p>are you having success with stacking? We didn't put much effort in it so far but from preliminary trials it seems like it doesn't improve over simple blending of our best submissions. </p>\n\n<p>Is someone else experiencing the same? If not, what are you guys using? Linear or nonlinear models for the stack? A mix of them? Thanks</p>\n\n<p>Cheers.</p>",
      "rawMarkdown": "Hey there guys,\n\nare you having success with stacking? We didn't put much effort in it so far but from preliminary trials it seems like it doesn't improve over simple blending of our best submissions. \n\nIs someone else experiencing the same? If not, what are you guys using? Linear or nonlinear models for the stack? A mix of them? Thanks\n\nCheers.",
      "votes": null
    },
    {
      "id": "348119",
      "postDate": "06/26/2018 06:14:16",
      "content": "<p>Stacking has been working very well for us. It's key to our solution.</p>",
      "rawMarkdown": "Stacking has been working very well for us. It's key to our solution.",
      "votes": null
    },
    {
      "id": "348120",
      "postDate": "06/26/2018 06:15:53",
      "content": "<p>Thanks Peter. Very interesting insight! May I ask you whether you guys are stacking only your model predictions or adding some extra-features as well?</p>",
      "rawMarkdown": "Thanks Peter. Very interesting insight! May I ask you whether you guys are stacking only your model predictions or adding some extra-features as well?",
      "votes": null
    },
    {
      "id": "348148",
      "postDate": "06/26/2018 07:05:58",
      "content": "<p>I like to stack with other features in addition to the model predictions, but this doesn't always work best. You have to be careful and try both ways.</p>",
      "rawMarkdown": "I like to stack with other features in addition to the model predictions, but this doesn't always work best. You have to be careful and try both ways.",
      "votes": null
    },
    {
      "id": "348162",
      "postDate": "06/26/2018 07:25:22",
      "content": "<p>i tried stack with other features but they have little contribution compared with model predictions... i wonder when you say 'be careful' you mean carefully select other features as input to stack? </p>",
      "rawMarkdown": "i tried stack with other features but they have little contribution compared with model predictions... i wonder when you say 'be careful' you mean carefully select other features as input to stack?",
      "votes": null
    },
    {
      "id": "348168",
      "postDate": "06/26/2018 07:36:35",
      "content": "<p>I mean that I found some features to be helpful, but other features to merely overfit. So I had to select features into the model one-by-one.</p>",
      "rawMarkdown": "I mean that I found some features to be helpful, but other features to merely overfit. So I had to select features into the model one-by-one.",
      "votes": null
    },
    {
      "id": "348179",
      "postDate": "06/26/2018 07:57:30",
      "content": "<p>Thanks that’s very useful to me. </p>",
      "rawMarkdown": "Thanks that’s very useful to me.",
      "votes": null
    },
    {
      "id": "348220",
      "postDate": "06/26/2018 09:54:39",
      "content": "<p>Peter you used both linear and non-linear stackers?</p>",
      "rawMarkdown": "Peter you used both linear and non-linear stackers?",
      "votes": null
    },
    {
      "id": "348223",
      "postDate": "06/26/2018 10:06:22",
      "content": "<p>have you checked the correlation between your models?</p>",
      "rawMarkdown": "have you checked the correlation between your models?",
      "votes": null
    },
    {
      "id": "348224",
      "postDate": "06/26/2018 10:13:54",
      "content": "<p>Yes, we did. Now are working to diversify our submissions including other models. Did stacking work for you Izmaylov? Did you use tree based models for that including other features? Thanks</p>",
      "rawMarkdown": "Yes, we did. Now are working to diversify our submissions including other models. Did stacking work for you Izmaylov? Did you use tree based models for that including other features? Thanks",
      "votes": null
    },
    {
      "id": "348235",
      "postDate": "06/26/2018 10:46:17",
      "content": "<p>Yes, stacking works great, beforehand, check the correlation.  Try different structures of stacking, several linear and non-linear layers.</p>",
      "rawMarkdown": "Yes, stacking works great, beforehand, check the correlation.  Try different structures of stacking, several linear and non-linear layers.",
      "votes": null
    },
    {
      "id": "348259",
      "postDate": "06/26/2018 12:01:32",
      "content": "<p>Thank for your sharing. How to check the correlation?  any refer links?</p>",
      "rawMarkdown": "Thank for your sharing. How to check the correlation?  any refer links?",
      "votes": null
    },
    {
      "id": "348261",
      "postDate": "06/26/2018 12:08:14",
      "content": "<p>If your models' predictions are concatenated in a pandas dataframe (one column per model) you can do it easily with df.corr(), where df is the dataframe</p>",
      "rawMarkdown": "If your models' predictions are concatenated in a pandas dataframe (one column per model) you can do it easily with df.corr(), where df is the dataframe",
      "votes": null
    },
    {
      "id": "348446",
      "postDate": "06/26/2018 18:46:33",
      "content": "<p>It works well in this competition. </p>",
      "rawMarkdown": "It works well in this competition.",
      "votes": null
    },
    {
      "id": "348483",
      "postDate": "06/26/2018 19:45:24",
      "content": "<p>@den3b: We'll do a full write-up and full code share after the competition is over and you can see.</p>",
      "rawMarkdown": "den3b: We'll do a full write-up and full code share after the competition is over and you can see.",
      "votes": null
    },
    {
      "id": "348599",
      "postDate": "06/27/2018 01:51:09",
      "content": "<p>It's the key for our model in the last week. </p>",
      "rawMarkdown": "It's the key for our model in the last week.",
      "votes": null
    },
    {
      "id": "348646",
      "postDate": "06/27/2018 03:46:52",
      "content": "<p>df.corr(), got it, thanks</p>",
      "rawMarkdown": "df.corr(), got it, thanks",
      "votes": null
    },
    {
      "id": "348659",
      "postDate": "06/27/2018 04:29:44",
      "content": "<p>Thanks :) Yeah, it started working for us as well.</p>",
      "rawMarkdown": "Thanks :) Yeah, it started working for us as well.",
      "votes": null
    },
    {
      "id": "348660",
      "postDate": "06/27/2018 04:30:34",
      "content": "<p>Yeah Peter thanks. It started working for us as well, I should have dedicated more time to it. But it's all good, glad to see we can still improve on the leaderboard.</p>",
      "rawMarkdown": "Yeah Peter thanks. It started working for us as well, I should have dedicated more time to it. But it's all good, glad to see we can still improve on the leaderboard.",
      "votes": null
    },
    {
      "id": "348664",
      "postDate": "06/27/2018 05:01:52",
      "content": "<p>Glad to hear it! There's still some time left and either way it will still make you stronger for the next competition.</p>",
      "rawMarkdown": "Glad to hear it! There's still some time left and either way it will still make you stronger for the next competition.",
      "votes": null
    },
    {
      "id": "348735",
      "postDate": "06/27/2018 07:29:06",
      "content": "<p>Are you guys using different algorithms for stacking? How do the models differentiate?</p>",
      "rawMarkdown": "Are you guys using different algorithms for stacking? How do the models differentiate?",
      "votes": null
    },
    {
      "id": "348917",
      "postDate": "06/27/2018 14:15:32",
      "content": "<p>Hey Kazanova.<br>\nI consider you to be one of the best stackers in the world, <br>\nso I really hope you can elaborate some of your stacking techniques after this competition...</p>",
      "rawMarkdown": "Hey Kazanova.<br>\nI consider you to be one of the best stackers in the world, <br>\nso I really hope you can elaborate some of your stacking techniques after this competition...",
      "votes": null
    },
    {
      "id": "348948",
      "postDate": "06/27/2018 15:17:21",
      "content": "<p>stacknet is very cool tool for me at real work, also for this competition.</p>",
      "rawMarkdown": "stacknet is very cool tool for me at real work, also for this competition.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 348119,
      "author_name": "peterhurford",
      "author_url": "",
      "post_date": "06/26/2018 06:14:16",
      "content": "<p>Stacking has been working very well for us. It's key to our solution.</p>",
      "votes": null,
      "replies": [
        {
          "id": 348120,
          "author_name": "den3b81",
          "author_url": "",
          "post_date": "06/26/2018 06:15:53",
          "content": "<p>Thanks Peter. Very interesting insight! May I ask you whether you guys are stacking only your model predictions or adding some extra-features as well?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348148,
          "author_name": "peterhurford",
          "author_url": "",
          "post_date": "06/26/2018 07:05:58",
          "content": "<p>I like to stack with other features in addition to the model predictions, but this doesn't always work best. You have to be careful and try both ways.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348162,
          "author_name": "yimacs",
          "author_url": "",
          "post_date": "06/26/2018 07:25:22",
          "content": "<p>i tried stack with other features but they have little contribution compared with model predictions... i wonder when you say 'be careful' you mean carefully select other features as input to stack? </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348168,
          "author_name": "peterhurford",
          "author_url": "",
          "post_date": "06/26/2018 07:36:35",
          "content": "<p>I mean that I found some features to be helpful, but other features to merely overfit. So I had to select features into the model one-by-one.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348179,
          "author_name": "yimacs",
          "author_url": "",
          "post_date": "06/26/2018 07:57:30",
          "content": "<p>Thanks that’s very useful to me. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348220,
          "author_name": "den3b81",
          "author_url": "",
          "post_date": "06/26/2018 09:54:39",
          "content": "<p>Peter you used both linear and non-linear stackers?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348483,
          "author_name": "peterhurford",
          "author_url": "",
          "post_date": "06/26/2018 19:45:24",
          "content": "<p>@den3b: We'll do a full write-up and full code share after the competition is over and you can see.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348660,
          "author_name": "den3b81",
          "author_url": "",
          "post_date": "06/27/2018 04:30:34",
          "content": "<p>Yeah Peter thanks. It started working for us as well, I should have dedicated more time to it. But it's all good, glad to see we can still improve on the leaderboard.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348664,
          "author_name": "peterhurford",
          "author_url": "",
          "post_date": "06/27/2018 05:01:52",
          "content": "<p>Glad to hear it! There's still some time left and either way it will still make you stronger for the next competition.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348735,
          "author_name": "cranberry93",
          "author_url": "",
          "post_date": "06/27/2018 07:29:06",
          "content": "<p>Are you guys using different algorithms for stacking? How do the models differentiate?</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 348223,
      "author_name": "izmaylov",
      "author_url": "",
      "post_date": "06/26/2018 10:06:22",
      "content": "<p>have you checked the correlation between your models?</p>",
      "votes": null,
      "replies": [
        {
          "id": 348224,
          "author_name": "den3b81",
          "author_url": "",
          "post_date": "06/26/2018 10:13:54",
          "content": "<p>Yes, we did. Now are working to diversify our submissions including other models. Did stacking work for you Izmaylov? Did you use tree based models for that including other features? Thanks</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348235,
          "author_name": "izmaylov",
          "author_url": "",
          "post_date": "06/26/2018 10:46:17",
          "content": "<p>Yes, stacking works great, beforehand, check the correlation.  Try different structures of stacking, several linear and non-linear layers.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348259,
          "author_name": "yyqing",
          "author_url": "",
          "post_date": "06/26/2018 12:01:32",
          "content": "<p>Thank for your sharing. How to check the correlation?  any refer links?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348261,
          "author_name": "den3b81",
          "author_url": "",
          "post_date": "06/26/2018 12:08:14",
          "content": "<p>If your models' predictions are concatenated in a pandas dataframe (one column per model) you can do it easily with df.corr(), where df is the dataframe</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348646,
          "author_name": "yyqing",
          "author_url": "",
          "post_date": "06/27/2018 03:46:52",
          "content": "<p>df.corr(), got it, thanks</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 348446,
      "author_name": "kazanova",
      "author_url": "",
      "post_date": "06/26/2018 18:46:33",
      "content": "<p>It works well in this competition. </p>",
      "votes": null,
      "replies": [
        {
          "id": 348659,
          "author_name": "den3b81",
          "author_url": "",
          "post_date": "06/27/2018 04:29:44",
          "content": "<p>Thanks :) Yeah, it started working for us as well.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348917,
          "author_name": "pocketsuteado",
          "author_url": "",
          "post_date": "06/27/2018 14:15:32",
          "content": "<p>Hey Kazanova.<br>\nI consider you to be one of the best stackers in the world, <br>\nso I really hope you can elaborate some of your stacking techniques after this competition...</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 348948,
          "author_name": "classtag",
          "author_url": "",
          "post_date": "06/27/2018 15:17:21",
          "content": "<p>stacknet is very cool tool for me at real work, also for this competition.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 348599,
      "author_name": "naivelamb",
      "author_url": "",
      "post_date": "06/27/2018 01:51:09",
      "content": "<p>It's the key for our model in the last week. </p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "348115": "Hey there guys,\n\nare you having success with stacking? We didn't put much effort in it so far but from preliminary trials it seems like it doesn't improve over simple blending of our best submissions. \n\nIs someone else experiencing the same? If not, what are you guys using? Linear or nonlinear models for the stack? A mix of them? Thanks\n\nCheers.",
    "348119": "Stacking has been working very well for us. It's key to our solution.",
    "348120": "Thanks Peter. Very interesting insight! May I ask you whether you guys are stacking only your model predictions or adding some extra-features as well?",
    "348148": "I like to stack with other features in addition to the model predictions, but this doesn't always work best. You have to be careful and try both ways.",
    "348162": "i tried stack with other features but they have little contribution compared with model predictions... i wonder when you say 'be careful' you mean carefully select other features as input to stack?",
    "348168": "I mean that I found some features to be helpful, but other features to merely overfit. So I had to select features into the model one-by-one.",
    "348179": "Thanks that’s very useful to me.",
    "348220": "Peter you used both linear and non-linear stackers?",
    "348223": "have you checked the correlation between your models?",
    "348224": "Yes, we did. Now are working to diversify our submissions including other models. Did stacking work for you Izmaylov? Did you use tree based models for that including other features? Thanks",
    "348235": "Yes, stacking works great, beforehand, check the correlation.  Try different structures of stacking, several linear and non-linear layers.",
    "348259": "Thank for your sharing. How to check the correlation?  any refer links?",
    "348261": "If your models' predictions are concatenated in a pandas dataframe (one column per model) you can do it easily with df.corr(), where df is the dataframe",
    "348446": "It works well in this competition.",
    "348483": "den3b: We'll do a full write-up and full code share after the competition is over and you can see.",
    "348599": "It's the key for our model in the last week.",
    "348646": "df.corr(), got it, thanks",
    "348659": "Thanks :) Yeah, it started working for us as well.",
    "348660": "Yeah Peter thanks. It started working for us as well, I should have dedicated more time to it. But it's all good, glad to see we can still improve on the leaderboard.",
    "348664": "Glad to hear it! There's still some time left and either way it will still make you stronger for the next competition.",
    "348735": "Are you guys using different algorithms for stacking? How do the models differentiate?",
    "348917": "Hey Kazanova.<br>\nI consider you to be one of the best stackers in the world, <br>\nso I really hope you can elaborate some of your stacking techniques after this competition...",
    "348948": "stacknet is very cool tool for me at real work, also for this competition."
  },
  "source": "meta"
}