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

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.

主站蜘蛛池模板: 磐安县| 绥滨县| 鹤壁市| 岗巴县| 婺源县| 盐边县| 武强县| 仪征市| 剑阁县| 大化| 东乌珠穆沁旗| 阳曲县| 晋江市| 巫山县| 延川县| 沧源| 峨边| 察隅县| 云龙县| 古蔺县| 漯河市| 临澧县| 郯城县| 宝丰县| 缙云县| 杨浦区| 通城县| 南城县| 同江市| 阜宁县| 林西县| 高清| 揭西县| 灌南县| 大关县| 内黄县| 和静县| 吉安县| 花莲市| 桐柏县| 广西|