{
  "id": 21500,
  "title": "Time Series!!!",
  "url": "/competitions/grupo-bimbo-inventory-demand/discussion/21500",
  "author_name": "Laurae",
  "post_date": "2016-06-08T01:04:36.463000",
  "votes": 11,
  "comment_count": 17,
  "views": 5139,
  "content": "<p>It changes a lot from the current competitions. I hope this one has an interesting data set, it looks very nice due to the topic and the data column descriptions provided.</p>\n\n<p>Sounds like a lot of features to engineer, and that will be probably really great to work in this (unusual?) competition!!</p>",
  "messages": [
    {
      "id": 122918,
      "postDate": "2016-06-08T09:46:27.450Z",
      "content": "<p>And then Gert will go to a camping site in Belgium and destroy us all!</p>",
      "rawMarkdown": "And then Gert will go to a camping site in Belgium and destroy us all!",
      "votes": 15
    },
    {
      "id": 122878,
      "postDate": "2016-06-08T01:04:36.463Z",
      "content": "<p>It changes a lot from the current competitions. I hope this one has an interesting data set, it looks very nice due to the topic and the data column descriptions provided.</p>\n\n<p>Sounds like a lot of features to engineer, and that will be probably really great to work in this (unusual?) competition!!</p>",
      "rawMarkdown": "It changes a lot from the current competitions. I hope this one has an interesting data set, it looks very nice due to the topic and the data column descriptions provided.\r\n\r\nSounds like a lot of features to engineer, and that will be probably really great to work in this (unusual?) competition!!",
      "votes": 11
    },
    {
      "id": 122916,
      "postDate": "2016-06-08T09:36:11.017Z",
      "content": "<p>All of us will also be waiting for you to share great and insightful information about various aspects of the data. You are simply astounding and awesome in your analysis of data. </p>\n\n<p>Regards\nSayantan</p>",
      "rawMarkdown": "All of us will also be waiting for you to share great and insightful information about various aspects of the data. You are simply astounding and awesome in your analysis of data. \r\n\r\nRegards\r\nSayantan",
      "votes": 4
    },
    {
      "id": 124265,
      "postDate": "2016-06-16T15:50:14.933Z",
      "content": "<p>It should be working like that - or else we would be using data from the future to predict the past.</p>\n\n<p>Something interesting, however, is that we have data of 7 weeks (3,4,5,6,7,8,9) for predicting the two following ones (10 and 11). So we shouldn't be dealing with all the test instances in the same way... ;)</p>",
      "rawMarkdown": "It should be working like that - or else we would be using data from the future to predict the past.\r\n\r\nSomething interesting, however, is that we have data of 7 weeks (3,4,5,6,7,8,9) for predicting the two following ones (10 and 11). So we shouldn't be dealing with all the test instances in the same way... ;)",
      "votes": 1
    },
    {
      "id": 123220,
      "postDate": "2016-06-10T12:28:03.560Z",
      "content": "<p>[quote=GonzaloAndr&#233;sMorenoG&#243;mez;122994]</p>\n\n<p>&#191;Se necesita saber de series de tiempo para concursar? Es mi primera vez en Kaggle y no lo tengo muy claro \nIs need to know of series of time? This is my first time in Kaggle</p>\n\n<p>[/quote]</p>\n\n<p>No necesariamente, pero necesitaras saber como trabajar con problemas de regresi&#243;n.</p>\n\n<p>Una forma sencilla de ver este problema seria: Para cada producto, dadas las unidades vendidas en la semana 1, en la semana 2, ... en la semana N, puedes predecir las ventas en la siguiente semana? (semana N+1). Y as&#237; puedes hacer lo mismo con cada producto.</p>\n\n<p>Suerte!</p>\n\n<p>=============================================</p>\n\n<p>Not necessarily, but you would need to know your way with regression problems.</p>\n\n<p>An easy way of formulating the problem would be: For each product, given the unit sales in week 1, week 2, ... week N, can you predict the unit sales in the next week? (week N+1). And the you can do the same with each other product.</p>\n\n<p>Good luck!</p>",
      "rawMarkdown": "[quote=GonzaloAndrésMorenoGómez;122994]\r\n\r\n¿Se necesita saber de series de tiempo para concursar? Es mi primera vez en Kaggle y no lo tengo muy claro \r\nIs need to know of series of time? This is my first time in Kaggle\r\n\r\n[/quote]\r\n\r\nNo necesariamente, pero necesitaras saber como trabajar con problemas de regresión.\r\n\r\nUna forma sencilla de ver este problema seria: Para cada producto, dadas las unidades vendidas en la semana 1, en la semana 2, ... en la semana N, puedes predecir las ventas en la siguiente semana? (semana N+1). Y así puedes hacer lo mismo con cada producto.\r\n\r\nSuerte!\r\n\r\n=============================================\r\n\r\nNot necessarily, but you would need to know your way with regression problems.\r\n\r\nAn easy way of formulating the problem would be: For each product, given the unit sales in week 1, week 2, ... week N, can you predict the unit sales in the next week? (week N+1). And the you can do the same with each other product.\r\n\r\nGood luck!\r\n\r\n",
      "votes": 1
    },
    {
      "id": 124886,
      "postDate": "2016-06-23T04:48:15.517Z",
      "content": "<p>[quote=Jesse Burstr&#246;m;124826]</p>\n\n<p>It worked!!! I got without any hassle 0.49 on LB. Thanks to @Misfyre for the averages script which i used as input to xgboost. I tried to use custom objective function creating gradient and hessian for the competition  loss function. It worked not due to the fact it assumes only positive values. But if the evaluation function is custom with only change to alway put predictions to absolute value it worked nicely(objectie standard rmse): R feval function i used:</p>\n\n<pre><code>evalerror &lt;- function(preds, dtrain) {\n  labels &lt;- getinfo(dtrain, &quot;label&quot;)\n  #preds[preds&lt;0] &lt;- 0\n  preds &lt;- abs(preds)\n  err &lt;- rmsell(preds, labels)\n  return(list(metric = &quot;rmsell&quot;, value = err))\n}\n</code></pre>\n\n<p>[/quote]</p>\n\n<p>Are you using using linear regression with xgboost?</p>",
      "rawMarkdown": "[quote=Jesse Burström;124826]\r\n\r\nIt worked!!! I got without any hassle 0.49 on LB. Thanks to @Misfyre for the averages script which i used as input to xgboost. I tried to use custom objective function creating gradient and hessian for the competition  loss function. It worked not due to the fact it assumes only positive values. But if the evaluation function is custom with only change to alway put predictions to absolute value it worked nicely(objectie standard rmse): R feval function i used:\r\n\r\n    evalerror <- function(preds, dtrain) {\r\n      labels <- getinfo(dtrain, \"label\")\r\n      #preds[preds<0] <- 0\r\n      preds <- abs(preds)\r\n      err <- rmsell(preds, labels)\r\n      return(list(metric = \"rmsell\", value = err))\r\n    }\r\n\r\n\r\n\r\n[/quote]\r\n\r\n\r\nAre you using using linear regression with xgboost?"
    },
    {
      "id": 124848,
      "postDate": "2016-06-22T18:50:23.887Z",
      "content": "<p>Jesse; that's great, thanks for sharing! Using the averages/counting/grouping scripts as inputs for ML solutions seem like the way forward!</p>\n\n<p>/mattias</p>",
      "rawMarkdown": "Jesse; that's great, thanks for sharing! Using the averages/counting/grouping scripts as inputs for ML solutions seem like the way forward!\r\n\r\n/mattias"
    },
    {
      "id": 124328,
      "postDate": "2016-06-17T07:37:49.840Z",
      "content": "<p>[quote=Jesse Burstr&#246;m;124306]</p>\n\n<p>Have idea to use the previous post of combining festures giving 0.52 or so on lb with xgboost. Doing raw xgboost gave me 0.67. Also to get the time series one could put the ladt weeks demand as a variable. Two problems 1 the beginning have to omit 1 week. 2 problem test set have 2 weeks so need to first predict the  first week to have variable for next. It seems very possible though.</p>\n\n<p>[/quote]</p>\n\n<p>By raw xgboost do you mean using only past weeks as features? I've been trying to add client and product features but could only manage ~0.62 so far.</p>",
      "rawMarkdown": "[quote=Jesse Burström;124306]\r\n\r\nHave idea to use the previous post of combining festures giving 0.52 or so on lb with xgboost. Doing raw xgboost gave me 0.67. Also to get the time series one could put the ladt weeks demand as a variable. Two problems 1 the beginning have to omit 1 week. 2 problem test set have 2 weeks so need to first predict the  first week to have variable for next. It seems very possible though.\r\n\r\n[/quote]\r\n\r\nBy raw xgboost do you mean using only past weeks as features? I've been trying to add client and product features but could only manage ~0.62 so far."
    },
    {
      "id": 124274,
      "postDate": "2016-06-16T17:36:48.837Z",
      "content": "<p>Thanks for your response. I'm new to this and got confused by the train vs test formats. Part of this is what you mention - the two weeks in the test file. Cheers.</p>",
      "rawMarkdown": "Thanks for your response. I'm new to this and got confused by the train vs test formats. Part of this is what you mention - the two weeks in the test file. Cheers."
    },
    {
      "id": 124262,
      "postDate": "2016-06-16T14:56:42.503Z",
      "content": "<p>This may have been answered somewhere, but do we have confirmation that the weeks are numbered sequentially? That is, week 11 is the most recent week and week 3 happened 8 weeks earlier? Just trying to be sure that it isn't the other way 'round.</p>",
      "rawMarkdown": "This may have been answered somewhere, but do we have confirmation that the weeks are numbered sequentially? That is, week 11 is the most recent week and week 3 happened 8 weeks earlier? Just trying to be sure that it isn't the other way 'round."
    },
    {
      "id": 122994,
      "postDate": "2016-06-09T03:01:02.050Z",
      "content": "<p>&#191;Se necesita saber de series de tiempo para concursar? Es mi primera vez en Kaggle y no lo tengo muy claro \nIs need to know of series of time? This is my first time in Kaggle</p>",
      "rawMarkdown": "¿Se necesita saber de series de tiempo para concursar? Es mi primera vez en Kaggle y no lo tengo muy claro \r\nIs need to know of series of time? This is my first time in Kaggle"
    },
    {
      "id": 122940,
      "postDate": "2016-06-08T17:24:35.710Z",
      "content": "<p>Gert is indeed the king of forecasting...</p>",
      "rawMarkdown": "Gert is indeed the king of forecasting..."
    },
    {
      "id": 124891,
      "postDate": "2016-06-23T06:32:29.400Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 124826,
      "postDate": "2016-06-22T16:11:35.687Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 124421,
      "postDate": "2016-06-18T09:30:57.717Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 124420,
      "postDate": "2016-06-18T09:28:20.373Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 124306,
      "postDate": "2016-06-17T01:24:45.383Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 123247,
      "postDate": "2016-06-10T16:29:32.393Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 122918,
      "author_name": "Čeduljko",
      "author_url": "",
      "post_date": "2016-06-08T09:46:27.450000",
      "content": "<p>And then Gert will go to a camping site in Belgium and destroy us all!</p>",
      "votes": 15,
      "replies": []
    },
    {
      "id": 122916,
      "author_name": "TheFOX",
      "author_url": "",
      "post_date": "2016-06-08T09:36:11.017000",
      "content": "<p>All of us will also be waiting for you to share great and insightful information about various aspects of the data. You are simply astounding and awesome in your analysis of data. </p>\n\n<p>Regards\nSayantan</p>",
      "votes": 4,
      "replies": []
    },
    {
      "id": 124265,
      "author_name": "CarrDelling",
      "author_url": "",
      "post_date": "2016-06-16T15:50:14.933000",
      "content": "<p>It should be working like that - or else we would be using data from the future to predict the past.</p>\n\n<p>Something interesting, however, is that we have data of 7 weeks (3,4,5,6,7,8,9) for predicting the two following ones (10 and 11). So we shouldn't be dealing with all the test instances in the same way... ;)</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 123220,
      "author_name": "CarrDelling",
      "author_url": "",
      "post_date": "2016-06-10T12:28:03.560000",
      "content": "<p>[quote=GonzaloAndr&#233;sMorenoG&#243;mez;122994]</p>\n\n<p>&#191;Se necesita saber de series de tiempo para concursar? Es mi primera vez en Kaggle y no lo tengo muy claro \nIs need to know of series of time? This is my first time in Kaggle</p>\n\n<p>[/quote]</p>\n\n<p>No necesariamente, pero necesitaras saber como trabajar con problemas de regresi&#243;n.</p>\n\n<p>Una forma sencilla de ver este problema seria: Para cada producto, dadas las unidades vendidas en la semana 1, en la semana 2, ... en la semana N, puedes predecir las ventas en la siguiente semana? (semana N+1). Y as&#237; puedes hacer lo mismo con cada producto.</p>\n\n<p>Suerte!</p>\n\n<p>=============================================</p>\n\n<p>Not necessarily, but you would need to know your way with regression problems.</p>\n\n<p>An easy way of formulating the problem would be: For each product, given the unit sales in week 1, week 2, ... week N, can you predict the unit sales in the next week? (week N+1). And the you can do the same with each other product.</p>\n\n<p>Good luck!</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 124886,
      "author_name": "Kevin Kirchhoff",
      "author_url": "",
      "post_date": "2016-06-23T04:48:15.517000",
      "content": "<p>[quote=Jesse Burstr&#246;m;124826]</p>\n\n<p>It worked!!! I got without any hassle 0.49 on LB. Thanks to @Misfyre for the averages script which i used as input to xgboost. I tried to use custom objective function creating gradient and hessian for the competition  loss function. It worked not due to the fact it assumes only positive values. But if the evaluation function is custom with only change to alway put predictions to absolute value it worked nicely(objectie standard rmse): R feval function i used:</p>\n\n<pre><code>evalerror &lt;- function(preds, dtrain) {\n  labels &lt;- getinfo(dtrain, &quot;label&quot;)\n  #preds[preds&lt;0] &lt;- 0\n  preds &lt;- abs(preds)\n  err &lt;- rmsell(preds, labels)\n  return(list(metric = &quot;rmsell&quot;, value = err))\n}\n</code></pre>\n\n<p>[/quote]</p>\n\n<p>Are you using using linear regression with xgboost?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 124848,
      "author_name": "Mattias Fagerlund",
      "author_url": "",
      "post_date": "2016-06-22T18:50:23.887000",
      "content": "<p>Jesse; that's great, thanks for sharing! Using the averages/counting/grouping scripts as inputs for ML solutions seem like the way forward!</p>\n\n<p>/mattias</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 124328,
      "author_name": "Sangxia",
      "author_url": "",
      "post_date": "2016-06-17T07:37:49.840000",
      "content": "<p>[quote=Jesse Burstr&#246;m;124306]</p>\n\n<p>Have idea to use the previous post of combining festures giving 0.52 or so on lb with xgboost. Doing raw xgboost gave me 0.67. Also to get the time series one could put the ladt weeks demand as a variable. Two problems 1 the beginning have to omit 1 week. 2 problem test set have 2 weeks so need to first predict the  first week to have variable for next. It seems very possible though.</p>\n\n<p>[/quote]</p>\n\n<p>By raw xgboost do you mean using only past weeks as features? I've been trying to add client and product features but could only manage ~0.62 so far.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 124274,
      "author_name": "MarkEvans",
      "author_url": "",
      "post_date": "2016-06-16T17:36:48.837000",
      "content": "<p>Thanks for your response. I'm new to this and got confused by the train vs test formats. Part of this is what you mention - the two weeks in the test file. Cheers.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 124262,
      "author_name": "MarkEvans",
      "author_url": "",
      "post_date": "2016-06-16T14:56:42.503000",
      "content": "<p>This may have been answered somewhere, but do we have confirmation that the weeks are numbered sequentially? That is, week 11 is the most recent week and week 3 happened 8 weeks earlier? Just trying to be sure that it isn't the other way 'round.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 122994,
      "author_name": "GonzaloAndrésMorenoGómez",
      "author_url": "",
      "post_date": "2016-06-09T03:01:02.050000",
      "content": "<p>&#191;Se necesita saber de series de tiempo para concursar? Es mi primera vez en Kaggle y no lo tengo muy claro \nIs need to know of series of time? This is my first time in Kaggle</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 122940,
      "author_name": "TheFOX",
      "author_url": "",
      "post_date": "2016-06-08T17:24:35.710000",
      "content": "<p>Gert is indeed the king of forecasting...</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 124891,
      "author_name": "",
      "author_url": "",
      "post_date": "2016-06-23T06:32:29.400000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 124826,
      "author_name": "",
      "author_url": "",
      "post_date": "2016-06-22T16:11:35.687000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 124421,
      "author_name": "",
      "author_url": "",
      "post_date": "2016-06-18T09:30:57.717000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 124420,
      "author_name": "",
      "author_url": "",
      "post_date": "2016-06-18T09:28:20.373000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 124306,
      "author_name": "",
      "author_url": "",
      "post_date": "2016-06-17T01:24:45.383000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 123247,
      "author_name": "",
      "author_url": "",
      "post_date": "2016-06-10T16:29:32.393000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "122918": "And then Gert will go to a camping site in Belgium and destroy us all!",
    "122878": "It changes a lot from the current competitions. I hope this one has an interesting data set, it looks very nice due to the topic and the data column descriptions provided.\r\n\r\nSounds like a lot of features to engineer, and that will be probably really great to work in this (unusual?) competition!!",
    "122916": "All of us will also be waiting for you to share great and insightful information about various aspects of the data. You are simply astounding and awesome in your analysis of data. \r\n\r\nRegards\r\nSayantan",
    "124265": "It should be working like that - or else we would be using data from the future to predict the past.\r\n\r\nSomething interesting, however, is that we have data of 7 weeks (3,4,5,6,7,8,9) for predicting the two following ones (10 and 11). So we shouldn't be dealing with all the test instances in the same way... ;)",
    "123220": "[quote=GonzaloAndrésMorenoGómez;122994]\r\n\r\n¿Se necesita saber de series de tiempo para concursar? Es mi primera vez en Kaggle y no lo tengo muy claro \r\nIs need to know of series of time? This is my first time in Kaggle\r\n\r\n[/quote]\r\n\r\nNo necesariamente, pero necesitaras saber como trabajar con problemas de regresión.\r\n\r\nUna forma sencilla de ver este problema seria: Para cada producto, dadas las unidades vendidas en la semana 1, en la semana 2, ... en la semana N, puedes predecir las ventas en la siguiente semana? (semana N+1). Y así puedes hacer lo mismo con cada producto.\r\n\r\nSuerte!\r\n\r\n=============================================\r\n\r\nNot necessarily, but you would need to know your way with regression problems.\r\n\r\nAn easy way of formulating the problem would be: For each product, given the unit sales in week 1, week 2, ... week N, can you predict the unit sales in the next week? (week N+1). And the you can do the same with each other product.\r\n\r\nGood luck!\r\n\r\n",
    "124886": "[quote=Jesse Burström;124826]\r\n\r\nIt worked!!! I got without any hassle 0.49 on LB. Thanks to @Misfyre for the averages script which i used as input to xgboost. I tried to use custom objective function creating gradient and hessian for the competition  loss function. It worked not due to the fact it assumes only positive values. But if the evaluation function is custom with only change to alway put predictions to absolute value it worked nicely(objectie standard rmse): R feval function i used:\r\n\r\n    evalerror <- function(preds, dtrain) {\r\n      labels <- getinfo(dtrain, \"label\")\r\n      #preds[preds<0] <- 0\r\n      preds <- abs(preds)\r\n      err <- rmsell(preds, labels)\r\n      return(list(metric = \"rmsell\", value = err))\r\n    }\r\n\r\n\r\n\r\n[/quote]\r\n\r\n\r\nAre you using using linear regression with xgboost?",
    "124848": "Jesse; that's great, thanks for sharing! Using the averages/counting/grouping scripts as inputs for ML solutions seem like the way forward!\r\n\r\n/mattias",
    "124328": "[quote=Jesse Burström;124306]\r\n\r\nHave idea to use the previous post of combining festures giving 0.52 or so on lb with xgboost. Doing raw xgboost gave me 0.67. Also to get the time series one could put the ladt weeks demand as a variable. Two problems 1 the beginning have to omit 1 week. 2 problem test set have 2 weeks so need to first predict the  first week to have variable for next. It seems very possible though.\r\n\r\n[/quote]\r\n\r\nBy raw xgboost do you mean using only past weeks as features? I've been trying to add client and product features but could only manage ~0.62 so far.",
    "124274": "Thanks for your response. I'm new to this and got confused by the train vs test formats. Part of this is what you mention - the two weeks in the test file. Cheers.",
    "124262": "This may have been answered somewhere, but do we have confirmation that the weeks are numbered sequentially? That is, week 11 is the most recent week and week 3 happened 8 weeks earlier? Just trying to be sure that it isn't the other way 'round.",
    "122994": "¿Se necesita saber de series de tiempo para concursar? Es mi primera vez en Kaggle y no lo tengo muy claro \r\nIs need to know of series of time? This is my first time in Kaggle",
    "122940": "Gert is indeed the king of forecasting...",
    "124891": "",
    "124826": "",
    "124421": "",
    "124420": "",
    "124306": "",
    "123247": ""
  }
}