Introduction to Machine Learning with Python by Andreas C. Müller

Introduction to Machine Learning with Python by Andreas C. Müller
Author: Andreas C. Müller
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2016-10-10

Private Employee

0

1

0

0

Self Employed

0

0

1

0

Self Employed Incorporated

0

0

0

1

Note


The one-hot encoding we use is quite similar, but not identical, to the dummy encoding used in statistics. For simplicity, we encode each category with a different binary feature. In statistics, it is common to encode a categorical feature with k different possible values into k–1 features (the last one is represented as all zeros). This is done to simplify the analysis (more technically, this will avoid making the data matrix rank-deficient).