healthcareai-r icon indicating copy to clipboard operation
healthcareai-r copied to clipboard

Remove columns with near zero varience before center/scale step in prep_data

Open NateGarrettHC opened this issue 6 years ago • 0 comments

Whenever a column has only one value, when it gets centered and scaled, the step converts that column to all NAs. And if NAs are fed into the PCA step, it fails. Removing near zero variance columns before centering and scaling would fix this.

NateGarrettHC avatar Aug 28 '18 17:08 NateGarrettHC