bert9bert / parallelforest Goto Github PK
View Code? Open in Web Editor NEWR package implementing random forest classification using parallel computing, built with Fortran and OpenMP in the backend.
R package implementing random forest classification using parallel computing, built with Fortran and OpenMP in the backend.
This is quite a fast and efficient package, avoiding foreach cloning. Very efficient and fantastics. It would be nicer if:
I'm trying to do some benchmarking on this package, and I've run into an issue where grow.forest
call causes RStudio to abort the session.
It appears that the issue is caused when the .Fortran() call is used to begin training the forest, but I am unsure what the root of the problem might be. I've created a reproducible example below:
library(ParallelForest)
y <- as.factor(purrr::rbernoulli(1000))
x1 <- rnorm(1000)
x2 <- rnorm(1000)
x3 <- rnorm(1000)
x3 <- rnorm(1000)
df <- data.frame(y = y,
x1 = x1,
x2 = x2,
x3 = x3)
grow.forest(y ~ ., df)
You can find my sessionInfo()
below as well:
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ParallelForest_1.1.0
loaded via a namespace (and not attached):
[1] compiler_3.5.1 magrittr_1.5 tools_3.5.1 yaml_2.2.0 rlang_0.2.1 purrr_0.2.5
Just to be clear, the data contained in this package works on the example given in the grow.forest
vignette. I am just confused as to why my example crashes the session
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.