Wraps the importance adapter to accept NAs in input.
imputeTransdapter(adapter = getImpRfZ)
Arguments
adapter: importance adapter to transform.
Returns
transformed importance adapter which can be fed into getImp argument of the Boruta function.
Note
An all-NA feature will be converted to all zeroes, which should be ok as a totally non-informative value with most methods, but it is not universally correct. Ideally, one should avoid having such features in input altogether.
Examples
## Not run:set.seed(777)data(srx)srx_na<-srx
# Randomly punch 25 holes in the SRX dataholes<-25holes<-cbind( sample(nrow(srx),holes,replace=TRUE), sample(ncol(srx),holes,replace=TRUE))srx_na[holes]<-NA# Use impute transdapter to mitigate them with internal imputationBoruta(Y~.,data=srx_na,getImp=imputeTransdapter(getImpRfZ))## End(Not run)