{
  "id": 1321,
  "title": "kinds of sampling techniques",
  "url": "/competitions/WhatDoYouKnow/discussion/1321",
  "author_name": "",
  "post_date": "2012-01-31T14:05:59.893Z",
  "votes": null,
  "comment_count": 1,
  "views": 1780,
  "content": "<p>I was wondering what are the different sampling techniques that are being used for validation set?</p>\r\n<p><br>\r\nWe have valid_training.csv - and to create a validation file from this, I am doing the following:</p>\r\n<p>Take the last question that was answered by each user and put it in validation set. Keep the remaining in training.</p>\r\n<p><br>\r\nWhat are the other methods that users have found effective?</p>\r\n<p>(of course for testing, we can use valid_test.csv)</p>",
  "messages": [
    {
      "id": "8366",
      "postDate": "01/31/2012 14:05:59",
      "content": "<p>I was wondering what are the different sampling techniques that are being used for validation set?</p>\r\n<p><br>\r\nWe have valid_training.csv - and to create a validation file from this, I am doing the following:</p>\r\n<p>Take the last question that was answered by each user and put it in validation set. Keep the remaining in training.</p>\r\n<p><br>\r\nWhat are the other methods that users have found effective?</p>\r\n<p>(of course for testing, we can use valid_test.csv)</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "8410",
      "postDate": "02/02/2012 18:33:53",
      "content": "<p>You may not want to use that method for creating a validation set -- by including all users, you include users who have not answered very many questions. (And, if you read the description of how the test set is created, you will note that those users would\r\n not be included in the test set.) You might want to use a method more like that used to generate the valid_training and valid_test files (described at http://www.kaggle.com/c/WhatDoYouKnow/data and in the thread http://www.kaggle.com/c/WhatDoYouKnow/forums/t/1083/purpose-of-valid-test-and-valid-training-files)\r\n You may also want to look at YetiMan's comment on generating validation sets:<br>\r\n<br>\r\n[quote=YetiMan;8385]<br>\r\n<br>\r\nMy first train/validation pair is the one provided for the contest.<br>\r\n<br>\r\nThe second is similar, but I take the next to the last question for each user with &gt;=5 questions (and add valid_test back in).<br>\r\n<br>\r\nThe third goes back in time one more question.<br>\r\n<br>\r\nTo be honest I'm not sure I needed to use all three sets for that particular model. Cross-validation didn't offer much improvement over the single set result.<br>\r\n<br>\r\n[/quote]</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 8410,
      "author_name": "thomaslotze",
      "author_url": "",
      "post_date": "02/02/2012 18:33:53",
      "content": "<p>You may not want to use that method for creating a validation set -- by including all users, you include users who have not answered very many questions. (And, if you read the description of how the test set is created, you will note that those users would\r\n not be included in the test set.) You might want to use a method more like that used to generate the valid_training and valid_test files (described at http://www.kaggle.com/c/WhatDoYouKnow/data and in the thread http://www.kaggle.com/c/WhatDoYouKnow/forums/t/1083/purpose-of-valid-test-and-valid-training-files)\r\n You may also want to look at YetiMan's comment on generating validation sets:<br>\r\n<br>\r\n[quote=YetiMan;8385]<br>\r\n<br>\r\nMy first train/validation pair is the one provided for the contest.<br>\r\n<br>\r\nThe second is similar, but I take the next to the last question for each user with &gt;=5 questions (and add valid_test back in).<br>\r\n<br>\r\nThe third goes back in time one more question.<br>\r\n<br>\r\nTo be honest I'm not sure I needed to use all three sets for that particular model. Cross-validation didn't offer much improvement over the single set result.<br>\r\n<br>\r\n[/quote]</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "8366": "",
    "8410": ""
  },
  "source": "meta"
}