{
  "id": 11514,
  "title": "Getting Started on Domino Data Lab",
  "url": "/competitions/datasciencebowl/discussion/11514",
  "author_name": "",
  "post_date": "2015-01-13T21:28:33.093Z",
  "votes": 5,
  "comment_count": 3,
  "views": 3194,
  "content": "<p>Our friends at Domino have published&nbsp;a&nbsp;nice post&nbsp;to get started on this competition. Not only do they walk&nbsp;you through setting up the&nbsp;getting started tutorial&nbsp;in the cloud, but they add some nice features around version control, productionalizing, and parallelizing. It's well worth a read -&nbsp;</p>\n<p><a href=\"http://blog.dominodatalab.com/how-to-get-started-with-the-data-science-bowl/\">http://blog.dominodatalab.com/how-to-get-started-with-the-data-science-bowl/</a></p>",
  "messages": [
    {
      "id": "62704",
      "postDate": "01/13/2015 21:28:33",
      "content": "<p>Our friends at Domino have published&nbsp;a&nbsp;nice post&nbsp;to get started on this competition. Not only do they walk&nbsp;you through setting up the&nbsp;getting started tutorial&nbsp;in the cloud, but they add some nice features around version control, productionalizing, and parallelizing. It's well worth a read -&nbsp;</p>\n<p><a href=\"http://blog.dominodatalab.com/how-to-get-started-with-the-data-science-bowl/\">http://blog.dominodatalab.com/how-to-get-started-with-the-data-science-bowl/</a></p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "62710",
      "postDate": "01/14/2015 04:48:01",
      "content": "<p>Thanks for posting this. Learned a bit. I tried parallelizing just the random forest training in the R code and received an error message about a line that had me curious when pasting it in.</p>\n<p>trees_per_core = floor(num_trees / numCores) <br>Error: object 'num_trees' not found.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "62711",
      "postDate": "01/14/2015 04:55:11",
      "content": "<p>Hi Charles,</p>\n<p>The code snippet in the post makes use of a variable (num_trees) that&nbsp;isdefined earlier in the code. You can see the full code that ran, <a href=\"https://app.dominodatalab.com/nick/plankton/view/train_parallel.R\">here</a>&nbsp;(note that to find this, I viewed the&nbsp;<a href=\"https://app.dominodatalab.com/nick/plankton#r/54b1c7c8e4b0431ee7523e46\">specific run</a>&nbsp;and clicked on the &quot;train_parallel.R&quot; filename under the &quot;command&quot; that ran).</p>\n<p>In the non-parallel version, ntree isn't specified in the call to randomForest -- 500 is the default. But when we train a forest&nbsp;in parallel, each job gets a fraction of the total trees, so we need to&nbsp;explicitly set that&nbsp;parameter value.&nbsp;</p>\n<p>Let me know if that makes sense...</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "62712",
      "postDate": "01/14/2015 05:52:28",
      "content": "<p>That worked very nicely. The random forest training time was about 4:11 on one CPU. On 4 cores with hyperthreading turned on it took 1:20. A nice speed up for so little coding!&nbsp;</p>\n<p>&nbsp;Thanks for the info.</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 62710,
      "author_name": "charlesroberson",
      "author_url": "",
      "post_date": "01/14/2015 04:48:01",
      "content": "<p>Thanks for posting this. Learned a bit. I tried parallelizing just the random forest training in the R code and received an error message about a line that had me curious when pasting it in.</p>\n<p>trees_per_core = floor(num_trees / numCores) <br>Error: object 'num_trees' not found.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 62711,
      "author_name": "dominodatalab",
      "author_url": "",
      "post_date": "01/14/2015 04:55:11",
      "content": "<p>Hi Charles,</p>\n<p>The code snippet in the post makes use of a variable (num_trees) that&nbsp;isdefined earlier in the code. You can see the full code that ran, <a href=\"https://app.dominodatalab.com/nick/plankton/view/train_parallel.R\">here</a>&nbsp;(note that to find this, I viewed the&nbsp;<a href=\"https://app.dominodatalab.com/nick/plankton#r/54b1c7c8e4b0431ee7523e46\">specific run</a>&nbsp;and clicked on the &quot;train_parallel.R&quot; filename under the &quot;command&quot; that ran).</p>\n<p>In the non-parallel version, ntree isn't specified in the call to randomForest -- 500 is the default. But when we train a forest&nbsp;in parallel, each job gets a fraction of the total trees, so we need to&nbsp;explicitly set that&nbsp;parameter value.&nbsp;</p>\n<p>Let me know if that makes sense...</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 62712,
      "author_name": "charlesroberson",
      "author_url": "",
      "post_date": "01/14/2015 05:52:28",
      "content": "<p>That worked very nicely. The random forest training time was about 4:11 on one CPU. On 4 cores with hyperthreading turned on it took 1:20. A nice speed up for so little coding!&nbsp;</p>\n<p>&nbsp;Thanks for the info.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "62704": "",
    "62710": "",
    "62711": "",
    "62712": ""
  },
  "source": "meta"
}