/** * Constructor taking the root node as a parameter. */ public DecisionTree(DecisionTreeNode newRoot) { _root = newRoot; _root._tree = this; _root._parent = null; _root._pastSplitConditions = new SysGeneric.Dictionary <string, string>(); _splitConditions = new SysGeneric.HashSet <string>(); _randomGenerator = new System.Random(); }
/*------------------------------------------------------------------------------------ * Constructors & Destructors * ------------------------------------------------------------------------------------*/ /** * Default DecisionTree constructor. */ public DecisionTree() { _root = null; _splitConditions = new SysGeneric.HashSet <string>(); _randomGenerator = new System.Random(); }