feature_calculations object containing a data frame of the reduced feature set
Arguments
data
feature_calculations object containing the raw feature matrix produced by theft::calculate_features
threshold
character denoting whether to retain features that have at least one non-zero coefficient "one" across all group levels or features that have non-zero coefficients across all group levels "all". Applicable to multinomial case only. Defaults to "one" for less aggressive filtering
plot
Boolean whether to draw the misclassification error lambda plot for a cv.glmnet object. Defaults to FALSE