Alternating Decision Tree - Description of The Algorithm

Description of The Algorithm

The inputs to the alternating decision tree algorithm are:

  • A set of inputs where is a vector of attributes and is either -1 or 1. Inputs are also called instances.
  • A set of weights corresponding to each instance.

The fundamental element of the ADTree algorithm is the rule. A single rule consists of a precondition, a condition, and two scores. A condition is a predicate of the form "attribute value." A precondition is simply a logical conjunction of conditions. Evaluation of a rule involves a pair of nested if statements:

1 if(precondition) 2 if(condition) 3 return score_one 4 else 5 return score_two 6 end if 7 else 8 return 0 9 end if

Several auxiliary functions are also required by the algorithm:

  • returns the sum of the weights of all positively labeled examples that satisfy predicate
  • returns the sum of the weights of all negatively labeled examples that satisfy predicate
  • returns the sum of the weights of all examples that satisfy predicate

The algorithm is as follows:

1 function ad_tree 2 input Set of training instances 3 4 for all 5 6 a rule with scores and, precondition "true" and condition "true." 7 8 the set of all possible conditions 9 for 10 get values that minimize 11 12 13 14 new rule with precondition, condition, and weights and 15 16 end for 17 return set of

The set grows by two preconditions in each iteration, and it is possible to derive the tree structure of a set of rules by making note of the precondition that is used in each successive rule.

Read more about this topic:  Alternating Decision Tree

Famous quotes containing the words description of the, description of and/or description:

    God damnit, why must all those journalists be such sticklers for detail? Why, they’d hold you to an accurate description of the first time you ever made love, expecting you to remember the color of the room and the shape of the windows.
    Lyndon Baines Johnson (1908–1973)

    The type of fig leaf which each culture employs to cover its social taboos offers a twofold description of its morality. It reveals that certain unacknowledged behavior exists and it suggests the form that such behavior takes.
    Freda Adler (b. 1934)

    Whose are the truly labored sentences? From the weak and flimsy periods of the politician and literary man, we are glad to turn even to the description of work, the simple record of the month’s labor in the farmer’s almanac, to restore our tone and spirits.
    Henry David Thoreau (1817–1862)