Machine Learning Notes
Machine Learning Notes
FunctionTransformer:
Polynomial transformation:
KBinsDiscretizer:
PART 3: FEATURE SELECTION
The features that do not contribute
significantly, can be removed. It leads to
decrease in size of the dataset and
hence, the computation cost of fitting a
model.
Filter Based
Categorical Transformers Removing features with low variance
OneHotEncoder: Encodes categorical Variance Threshold: Removes all
feature or label as a one-hot numeric features with variance below a certain
array. Creates one binary column for threshold, as specified by the user, from
each of K unique values. Exactly one input feature matrix. By default removes
column has 1 in it and rest have 0.