- Python Machine Learning By Example
- Yuxi (Hayden) Liu
- 110字
- 2021-07-02 22:57:18
Label encoding
Humans are able to deal with various types of values. Machine learning algorithms with some exceptions need numerical values. If we offer a string such as Ivan, unless we are using specialized software the program will not know what to do. In this example, we are dealing with a categorical feature, names probably. We can consider each unique value to be a label. (In this particular example, we also need to decide what to do with the case-is Ivan the same as ivan). We can then replace each label by an integer-label encoding. This approach can be problematic, because the learner may conclude that there is an ordering.
推薦閱讀
- 微服務設計(第2版)
- Learn Type:Driven Development
- Machine Learning with R Cookbook(Second Edition)
- Data Analysis with IBM SPSS Statistics
- C#程序設計
- The DevOps 2.5 Toolkit
- C++反匯編與逆向分析技術揭秘(第2版)
- Hands-On Full Stack Development with Spring Boot 2.0 and React
- Learning iOS Security
- 計算機應用技能實訓教程
- 貫通Tomcat開發
- 從零學Java設計模式
- 算法精解:C語言描述
- Java 11 and 12:New Features
- 量子計算機編程:從入門到實踐