大数据挖掘与应用 第10章 决策树分类算法.pptVIP

  • 56
  • 1
  • 约3.09万字
  • 约 131页
  • 2021-07-29 发布于甘肃
  • 举报

大数据挖掘与应用 第10章 决策树分类算法.ppt

/** * 计算 total * ((Sv / S) * Entropy(Sv)) * */ double sv_total = 0; for (int i = 0; i arrtibutes.length; i++) { sv_total += entropySv(array,index,arrtibutes[i],array.length); } return entropyS - sv_total; } /** * 计算(Sv / S) * Entropy(Sv) * */ private double entropySv(Object[] array, int index, String arrtibute, int allTotal) { String[] playBalls = getArrtibutes(this.nodeIndex); int[] counts = new int[playBalls.length]; for(int i = 0;i counts.length;i++){ counts[i] = 0; } for (int i = 0; i array.length; i++) { String[] strs = (String[]) array[i]; i

文档评论(0)

1亿VIP精品文档

相关文档