.OneHotEncoder() - Python for Integrated Circuits - - An Online Book - |
||||||||
Python for Integrated Circuits http://www.globalsino.com/ICs/ | ||||||||
Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix | ||||||||
================================================================================= The OneHotEncoder() performs one hot encoding. One hot encoding consists in replacing the categorical variable by a group of binary variables which take value 0 or 1, to indicate if a certain category is present in the observation. The binary variables are also known as dummy variables. One-hot-encoding is a process by which categorical variables are converted into a form that could be provided to neural networks to do a better job in prediction. ============================================ Preprocessing categorical features. code: ============================================
|
||||||||
================================================================================= | ||||||||
|
||||||||