swager / randomForestCI

This package is DEPRECATED. Please use the packages `grf` or `ranger` instead, which have built-in confidence intervals.
https://github.com/swager/grf
MIT License
69 stars 21 forks source link

allow one row prediction #5

Closed alionaBER closed 7 years ago

alionaBER commented 7 years ago

I am suggesting a slight change to the infJack() function to allow using the randomForestInfJack() for a single observation. The original version gives me an error "Error in rowMeans(pred) : 'x' must be an array of at least two dimensions", if test data contains only one row.

swager commented 7 years ago

Thank you!