Data Transformation, Sklearn, Machine Learning, One Hot Encoding, Label Encoding.
(encode), and the distribution used to divide up the values of the variable (strategy), such as ‘uniform’.The example below creates a synthetic input variable with 10 numerical input variables, then encodes each into 10 discrete bins with an ordinal encoding. # discretize numeric input variables