org.wdssii.decisiontree
Interface DecisionTreeCreator
- All Known Implementing Classes:
- QuinlanC45AxialDecisionTreeCreator
public interface DecisionTreeCreator
The learning algorithm for a decision tree. Create an instance of this class
and call the learn() method
- Author:
- lakshman
learn
DecisionTree learn(float[][] inputData,
int[] targetClass)
throws DecisionTreeCreator.TreeCreationException,
IllegalArgumentException
- Parameters:
inputData
- an array where each row corresponds to a single instance (to
be classified) and the columns hold the attributes of that
instancetargetClass
- an array where each row corresponds to a single instance,
specifically the actual classification of that instance. The
class needs to be a number 0,1,2,...,N-1 where N is the number
of classes. Some of these classes may have no examples.
- Returns:
- decisiontree
- Throws:
DecisionTreeCreator.TreeCreationException
IllegalArgumentException