官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 四川省| 宜春市| 岐山县| 安宁市| 吉安市| 台安县| 崇义县| 高碑店市| 南充市| 伊宁市| 集安市| 安福县| 石阡县| 鸡泽县| 绥芬河市| 平阴县| 双牌县| 吴旗县| 永清县| 永康市| 上饶县| 新民市| 诏安县| 东山县| 林口县| 左权县| 卢氏县| 兴山县| 长宁区| 彩票| 芒康县| 宁明县| 新余市| 石家庄市| 元阳县| 南丰县| 建德市| 铜川市| 崇义县| 若尔盖县| 安庆市|