コード例 #1
0
 private static double nodeEntropy(TransitionTable node, int variable, int countPerSplit) {
   int rowsWithVariable = node.numberOfRowsWithVariable(variable);
   int rowsWithoutVariable = node.size() - rowsWithVariable;
   return entropy(rowsWithVariable, countPerSplit) + entropy(rowsWithoutVariable, countPerSplit);
 }