{
  "id": 20999,
  "title": "Memory error in R",
  "url": "/competitions/facebook-v-predicting-check-ins/discussion/20999",
  "author_name": "",
  "post_date": "2016-05-16T16:08:09.060Z",
  "votes": null,
  "comment_count": 7,
  "views": 841,
  "content": "<p>I am getting memory error when fitting my model.\nHow can i overcome this ?</p>\n\n<p>PS : using 64 bit system and R version 3.3.0</p>",
  "messages": [
    {
      "id": "120236",
      "postDate": "05/16/2016 16:08:09",
      "content": "<p>I am getting memory error when fitting my model.\nHow can i overcome this ?</p>\n\n<p>PS : using 64 bit system and R version 3.3.0</p>",
      "rawMarkdown": "I am getting memory error when fitting my model.\r\nHow can i overcome this ?\r\n\r\nPS : using 64 bit system and R version 3.3.0",
      "votes": null
    },
    {
      "id": "120241",
      "postDate": "05/16/2016 17:16:58",
      "content": "<p>Hi, I had the same issue so I decided to store my data in Hadoop and use sparkR.  </p>\n\n<p>As you can see, the data is rather big and since R needs to load this into memory it gives problems\n.... see <a href=\"http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/\">http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/</a></p>\n\n<p>I am using the following references:</p>\n\n<ul>\n<li><a href=\"https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html\">https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html</a></li>\n<li><a href=\"https://spark.apache.org/docs/latest/sparkr.html\">https://spark.apache.org/docs/latest/sparkr.html</a></li>\n</ul>\n\n<p>I hope this might be helpful.\nRegards</p>",
      "rawMarkdown": "Hi, I had the same issue so I decided to store my data in Hadoop and use sparkR.  \r\n\r\nAs you can see, the data is rather big and since R needs to load this into memory it gives problems\r\n.... see http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/\r\n\r\nI am using the following references:\r\n\r\n - https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html\r\n - https://spark.apache.org/docs/latest/sparkr.html\r\n\r\n\r\nI hope this might be helpful.\r\nRegards",
      "votes": null
    },
    {
      "id": "120261",
      "postDate": "05/16/2016 21:47:20",
      "content": "<p>What model are you trying to fit? </p>",
      "rawMarkdown": "What model are you trying to fit?",
      "votes": null
    },
    {
      "id": "120327",
      "postDate": "05/17/2016 13:32:55",
      "content": "<p>random forest</p>",
      "rawMarkdown": "random forest",
      "votes": null
    },
    {
      "id": "120339",
      "postDate": "05/17/2016 15:07:35",
      "content": "<p>[quote=tino;120241]</p>\n\n<p>Hi, I had the same issue so I decided to store my data in Hadoop and use sparkR.  </p>\n\n<p>As you can see, the data is rather big and since R needs to load this into memory it gives problems\n.... see <a href=\"http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/\">http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/</a></p>\n\n<p>I am using the following references:</p>\n\n<ul>\n<li><a href=\"https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html\">https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html</a></li>\n<li><a href=\"https://spark.apache.org/docs/latest/sparkr.html\">https://spark.apache.org/docs/latest/sparkr.html</a></li>\n</ul>\n\n<p>I hope this might be helpful.\nRegards</p>\n\n<p>[/quote]</p>",
      "rawMarkdown": "[quote=tino;120241]\r\n\r\nHi, I had the same issue so I decided to store my data in Hadoop and use sparkR.  \r\n\r\nAs you can see, the data is rather big and since R needs to load this into memory it gives problems\r\n.... see http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/\r\n\r\nI am using the following references:\r\n\r\n - https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html\r\n - https://spark.apache.org/docs/latest/sparkr.html\r\n\r\n\r\nI hope this might be helpful.\r\nRegards\r\n\r\n[/quote]",
      "votes": null
    },
    {
      "id": "120340",
      "postDate": "05/17/2016 15:09:56",
      "content": "<p>unable to launch spark library :( code to set  enviroment variable is executed but on library(sparkR)  it throws error &quot;Error in library(SparkR) : there is no package called &#8216;SparkR&#8217;&quot;</p>",
      "rawMarkdown": "unable to launch spark library :( code to set  enviroment variable is executed but on library(sparkR)  it throws error \"Error in library(SparkR) : there is no package called ‘SparkR’\"",
      "votes": null
    },
    {
      "id": "120348",
      "postDate": "05/17/2016 17:04:22",
      "content": "<p>All of the classification methods I've tested or read about seem like they won't work well with 108k+ classes. They are often limited at 1000, or even 32.</p>",
      "rawMarkdown": "All of the classification methods I've tested or read about seem like they won't work well with 108k+ classes. They are often limited at 1000, or even 32.",
      "votes": null
    },
    {
      "id": "120870",
      "postDate": "05/21/2016 06:25:55",
      "content": "<p>I wrote a script <a href=\"https://www.kaggle.com/apapiu/facebook-v-predicting-check-ins/random-forest-on-a-few-blocks\">here</a> that outlines how to do random forests on this data set by subdividing it into grids and doing a model on each subdivision - this makes sense in this case since clusers of <code>place_id</code>'s are localized.</p>\n\n<p>The only thing I could find that works directly on the entire dataset is k nearest neighbors.</p>",
      "rawMarkdown": "I wrote a script [here](https://www.kaggle.com/apapiu/facebook-v-predicting-check-ins/random-forest-on-a-few-blocks) that outlines how to do random forests on this data set by subdividing it into grids and doing a model on each subdivision - this makes sense in this case since clusers of `place_id`'s are localized.\r\n\r\nThe only thing I could find that works directly on the entire dataset is k nearest neighbors.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 120241,
      "author_name": "tinosibanda",
      "author_url": "",
      "post_date": "05/16/2016 17:16:58",
      "content": "<p>Hi, I had the same issue so I decided to store my data in Hadoop and use sparkR.  </p>\n\n<p>As you can see, the data is rather big and since R needs to load this into memory it gives problems\n.... see <a href=\"http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/\">http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/</a></p>\n\n<p>I am using the following references:</p>\n\n<ul>\n<li><a href=\"https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html\">https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html</a></li>\n<li><a href=\"https://spark.apache.org/docs/latest/sparkr.html\">https://spark.apache.org/docs/latest/sparkr.html</a></li>\n</ul>\n\n<p>I hope this might be helpful.\nRegards</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120261,
      "author_name": "apapiu",
      "author_url": "",
      "post_date": "05/16/2016 21:47:20",
      "content": "<p>What model are you trying to fit? </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120327,
      "author_name": "snehil786",
      "author_url": "",
      "post_date": "05/17/2016 13:32:55",
      "content": "<p>random forest</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120339,
      "author_name": "snehil786",
      "author_url": "",
      "post_date": "05/17/2016 15:07:35",
      "content": "<p>[quote=tino;120241]</p>\n\n<p>Hi, I had the same issue so I decided to store my data in Hadoop and use sparkR.  </p>\n\n<p>As you can see, the data is rather big and since R needs to load this into memory it gives problems\n.... see <a href=\"http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/\">http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/</a></p>\n\n<p>I am using the following references:</p>\n\n<ul>\n<li><a href=\"https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html\">https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html</a></li>\n<li><a href=\"https://spark.apache.org/docs/latest/sparkr.html\">https://spark.apache.org/docs/latest/sparkr.html</a></li>\n</ul>\n\n<p>I hope this might be helpful.\nRegards</p>\n\n<p>[/quote]</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120340,
      "author_name": "snehil786",
      "author_url": "",
      "post_date": "05/17/2016 15:09:56",
      "content": "<p>unable to launch spark library :( code to set  enviroment variable is executed but on library(sparkR)  it throws error &quot;Error in library(SparkR) : there is no package called &#8216;SparkR&#8217;&quot;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120348,
      "author_name": "zeraes",
      "author_url": "",
      "post_date": "05/17/2016 17:04:22",
      "content": "<p>All of the classification methods I've tested or read about seem like they won't work well with 108k+ classes. They are often limited at 1000, or even 32.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 120870,
      "author_name": "apapiu",
      "author_url": "",
      "post_date": "05/21/2016 06:25:55",
      "content": "<p>I wrote a script <a href=\"https://www.kaggle.com/apapiu/facebook-v-predicting-check-ins/random-forest-on-a-few-blocks\">here</a> that outlines how to do random forests on this data set by subdividing it into grids and doing a model on each subdivision - this makes sense in this case since clusers of <code>place_id</code>'s are localized.</p>\n\n<p>The only thing I could find that works directly on the entire dataset is k nearest neighbors.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "120236": "I am getting memory error when fitting my model.\r\nHow can i overcome this ?\r\n\r\nPS : using 64 bit system and R version 3.3.0",
    "120241": "Hi, I had the same issue so I decided to store my data in Hadoop and use sparkR.  \r\n\r\nAs you can see, the data is rather big and since R needs to load this into memory it gives problems\r\n.... see http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/\r\n\r\nI am using the following references:\r\n\r\n - https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html\r\n - https://spark.apache.org/docs/latest/sparkr.html\r\n\r\n\r\nI hope this might be helpful.\r\nRegards",
    "120261": "What model are you trying to fit?",
    "120327": "random forest",
    "120339": "[quote=tino;120241]\r\n\r\nHi, I had the same issue so I decided to store my data in Hadoop and use sparkR.  \r\n\r\nAs you can see, the data is rather big and since R needs to load this into memory it gives problems\r\n.... see http://analyticstraining.com/2014/memory-management-in-r-and-how-it-handles-big-data/\r\n\r\nI am using the following references:\r\n\r\n - https://community.hortonworks.com/articles/25558/running-sparkr-in-rstudio-using-hdp-24.html\r\n - https://spark.apache.org/docs/latest/sparkr.html\r\n\r\n\r\nI hope this might be helpful.\r\nRegards\r\n\r\n[/quote]",
    "120340": "unable to launch spark library :( code to set  enviroment variable is executed but on library(sparkR)  it throws error \"Error in library(SparkR) : there is no package called ‘SparkR’\"",
    "120348": "All of the classification methods I've tested or read about seem like they won't work well with 108k+ classes. They are often limited at 1000, or even 32.",
    "120870": "I wrote a script [here](https://www.kaggle.com/apapiu/facebook-v-predicting-check-ins/random-forest-on-a-few-blocks) that outlines how to do random forests on this data set by subdividing it into grids and doing a model on each subdivision - this makes sense in this case since clusers of `place_id`'s are localized.\r\n\r\nThe only thing I could find that works directly on the entire dataset is k nearest neighbors."
  },
  "source": "meta"
}