if (i != numvalues-1) System.out.print(tab + "} else ");
else System.out.println(tab + "}");
}
}
public void createDecisionTree() {
decomposeNode(root);
printTree(root, "");
}
/* main function */
public static void main(String[] args) throws Exception {
ID3 me = new ID3();
int status = me.readData("c:\\in.txt");
if (status <= 0) return;
me.createDecisionTree();
}
}
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
For this message the author msi_333 has received gratitude : Elsa
camoet
Question subject: Re: java code for decision tree algorithm
Posted: Wed Aug 25, 2010 11:53 pm
Joined: Wed Aug 25, 2010 11:32 pm Posts: 1 Has thanked: 0 time Have thanks: 0 time
I am also currently working on my final project about the decision tree algorithm, but based on php. What the source code above can convert the php? But I do not understand. Please help