Introduction to Machine Learning with Python by Andreas C. Müller
Author: Andreas C. Müller , Date: August 17, 2020
, Views: 904
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).
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.