The Goal
The binned format helps correlation analysis to identify non-linear trends between a predictor (binned values) and a
response (the target)
What Binarize Does
The binarize()
function takes data in a "normal" format and converts to a binary format that is useful as a preparation
step before using correlate()
:
Numeric Features:
The "Normal Data" format has numeric features that are continuous values in numeric format (double
or integer
).
The binarize()
function converts these to bins (categories) and then discretizes the bins using a one-hot encoding process.
Categorical Features:
The "Normal Data" format has categorical features that are character
or factor
format.
The binarize()
function converts these to binary features using a one-hot encoding process.