Select Features from Model¶
Meta-transformer for selecting features based on importance weight. Only works for models with coef or feature_importances attributes.
Configuration: |
|
---|---|
Attributes: | |
Inputs: |
|
Outputs: |
|
Ports:
Inputs:
model: model
Model
in-data: table
in-data
Outputs:
out-data: table
out-data
features: table
features
Configuration:
- threshold
- The threshold value to use for feature selection. Features whose importance is greater or equal are kept while the others are discarded. If “median” (resp. “mean”), then the
threshold
value is the median (resp. the mean) of the feature importances. A scaling factor (e.g., “1.25*mean”) may also be used. If None and if the estimator has a parameter penalty set to l1, either explicitly or implicitly (e.g, Lasso), the threshold used is 1e-5. Otherwise, “mean” is used by default.