imputeTransdapter function

Impute transdapter

Impute transdapter

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 data holes<-25 holes<-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 imputation Boruta(Y~.,data=srx_na,getImp=imputeTransdapter(getImpRfZ)) ## End(Not run)
  • Maintainer: Miron Bartosz Kursa
  • License: GPL (>= 2)
  • Last published: 2022-11-12