{
  "id": 12288,
  "title": "Understanding Random Forest benchmark code in R.",
  "url": "/competitions/digit-recognizer/discussion/12288",
  "author_name": "",
  "post_date": "2015-01-21T10:56:25.503000",
  "votes": 1,
  "comment_count": 1,
  "views": null,
  "content": "<p style=\"text-align: left\">What this line is actually doing ?</p>\n<p style=\"text-align: left\">How come predicted comes in ?</p>\n<p>predictions &lt;- levels(labels)[rf$test$predicted]</p>",
  "messages": [
    {
      "id": 63115,
      "postDate": "2015-01-24T21:08:07.763Z",
      "content": "<p>Hi Rachana,</p>\n<p>The predicted doesn't &quot;come in&quot;! It's an output of the randomForest() function.&nbsp;</p>\n<p>In the documentation it explains you can pass xtest as an argument.</p>\n<p><strong><em>xtest</em></strong><br><strong><em>a data frame or matrix (like x) containing predictors for the test set.</em></strong></p>\n\n<p>http://www.inside-r.org/packages/cran/randomForest/docs/randomForest</p>\n<p>or just type ?randomForest in the console</p>",
      "votes": 1
    },
    {
      "id": 62954,
      "postDate": "2015-01-21T10:56:25.503Z",
      "content": "<p style=\"text-align: left\">What this line is actually doing ?</p>\n<p style=\"text-align: left\">How come predicted comes in ?</p>\n<p>predictions &lt;- levels(labels)[rf$test$predicted]</p>",
      "votes": 1
    }
  ],
  "comments": [
    {
      "id": 63115,
      "author_name": "marbel",
      "author_url": "",
      "post_date": "2015-01-24T21:08:07.763000",
      "content": "<p>Hi Rachana,</p>\n<p>The predicted doesn't &quot;come in&quot;! It's an output of the randomForest() function.&nbsp;</p>\n<p>In the documentation it explains you can pass xtest as an argument.</p>\n<p><strong><em>xtest</em></strong><br><strong><em>a data frame or matrix (like x) containing predictors for the test set.</em></strong></p>\n\n<p>http://www.inside-r.org/packages/cran/randomForest/docs/randomForest</p>\n<p>or just type ?randomForest in the console</p>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "63115": "",
    "62954": ""
  }
}