To be able to run the package extraTrees (which i need to make extreme randomised trees) I needed to install the Rjava package in my RStudio. The code below works perfectly when i use it in a limited amount of data (1000 observations..) However i need to be able to run the code on a dataset of 50 000-100 000 observations, an iterate it around 50 times...
library(rJava)
library(extraTrees)
et <- extraTrees(Input, Output, ntree = 300 ,nodesize=3, numRandomCuts=2, numThreads= 4)
When I try to run this I get the following error:
Error in .jarray(m) : java.lang.OutOfMemoryError: Java heap space
Does anyone know how to fix it? I have been looking for an answer but didn't find how to fit it in a RStudio environment.