Closed anishjoni closed 3 years ago
There's no limit, but the error message is saying that a memory allocation failed. It could be a bug with the library, or could be that you don't have enough RAM for the model.
iso_forest <- isolation.forest(head(data, 100), ntrees = 100, nthreads = 1)
.isotree
?Thanks for you quick response!
iso_forest <- isolation.forest(head(data, 1000), ntrees = 100, nthreads = 1)
.isotree_0.2.7
I think maybe it has to do with RAM. I have a memory.limit()
7839
.
Is there a way I can scale the algorithm with current RAM to the whole data.frame of 360K observations?
Just found the answer to my question in the documentation(isolation.forest , for people with same question in the future). Thank you for your time, awesome package!!
Hello,
Please let me know if you need more code or explanation, I'm new to reporting issues.
I'm getting the following error when trying to build an isolation tree with 360K obervations.
Code:
iso_forest <- isolation.forest(data, ntrees = 100, nthreads = 1)
Error: Error in fit_model(pdata$X_num, pdata$X_cat, unname(pdata$ncat), pdata$Xc, : std::bad_alloc
I have a hunch it is because of using it on 360K obersvations. Is there a limit to the number of observations on which I can use isotree on?