Skip to content
Home ยป data.table


randomForest gives NA/NaN/Inf in foreign function call and how to solve it

Personally, Random Forest is one of my favorite algorithms for supervised learning. It’s quick and dirty and still allows for some interpretation. However, R and the RandomForest package are somewhat cryptic when it comes to requirements not met to properly train the algorithm. I bumped a lot into this error…