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

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.

主站蜘蛛池模板: 东明县| 台东市| 宁德市| 锦屏县| 安康市| 南陵县| 会昌县| 当涂县| 敦化市| 封开县| 大荔县| 兰考县| 天水市| 攀枝花市| 固阳县| 乳源| 新巴尔虎右旗| 泊头市| 垦利县| 准格尔旗| 六枝特区| 安国市| 常山县| 新丰县| 金湖县| 汨罗市| 临夏市| 措勤县| 望城县| 平陆县| 郧西县| 竹山县| 华池县| 山西省| 保定市| 平阴县| 西贡区| 乌拉特中旗| 盐亭县| 凉城县| 天镇县|