java 实现数据挖掘的独热编码 OneHot

// 独热编码,对某一列进行编码 public static ArrayList<String> oneHot(ArrayList<String> list, int index) throws Exception { // 创建键值 HashSet<String> set = new HashSet<>(); for (String l : list)
相关文章
相关标签/搜索