Sponsored Links

Rabu, 20 Desember 2017

Sponsored Links

Boosting alternating decision trees modeling of disease trait ...
src: media.springernature.com

An alternating decision tree (ADTree) is a machine learning method for classification. It generalizes decision trees and has connections to boosting.

An ADTree consists of an alternation of decision nodes, which specify a predicate condition, and prediction nodes, which contain a single number. An instance is classified by an ADTree by following all paths for which all decision nodes are true, and summing any prediction nodes that are traversed.


Video Alternating decision tree



History

ADTrees were introduced by Yoav Freund and Llew Mason. However, the algorithm as presented had several typographical errors. Clarifications and optimizations were later presented by Bernhard Pfahringer, Geoffrey Holmes and Richard Kirkby. Implementations are available in Weka and JBoost.


Maps Alternating decision tree



Motivation

Original boosting algorithms typically used either decision stumps or decision trees as weak hypotheses. As an example, boosting decision stumps creates a set of T {\displaystyle T} weighted decision stumps (where T {\displaystyle T} is the number of boosting iterations), which then vote on the final classification according to their weights. Individual decision stumps are weighted according to their ability to classify the data.

Boosting a simple learner results in an unstructured set of T {\displaystyle T} hypotheses, making it difficult to infer correlations between attributes. Alternating decision trees introduce structure to the set of hypotheses by requiring that they build off a hypothesis that was produced in an earlier iteration. The resulting set of hypotheses can be visualized in a tree based on the relationship between a hypothesis and its "parent."

Another important feature of boosted algorithms is that the data is given a different distribution at each iteration. Instances that are misclassified are given a larger weight while accurately classified instances are given reduced weight.


Decision Tree and Decision Forest - File Exchange - MATLAB Central
src: www.mathworks.com


Alternating decision tree structure

An alternating decision tree consists of decision nodes and prediction nodes. Decision nodes specify a predicate condition. Prediction nodes contain a single number. ADTrees always have prediction nodes as both root and leaves. An instance is classified by an ADTree by following all paths for which all decision nodes are true and summing any prediction nodes that are traversed. This is different from binary classification trees such as CART (Classification and regression tree) or C4.5 in which an instance follows only one path through the tree.

Example

The following tree was constructed using JBoost on the spambase dataset (available from the UCI Machine Learning Repository). In this example, spam is coded as 1 and regular email is coded as -1.

The following table contains part of the information for a single instance.

The instance is scored by summing all of the prediction nodes through which it passes. In the case of the instance above, the score is calculated as

The final score of 0.657 is positive, so the instance is classified as spam. The magnitude of the value is a measure of confidence in the prediction. The original authors list three potential levels of interpretation for the set of attributes identified by an ADTree:

  • Individual nodes can be evaluated for their own predictive ability.
  • Sets of nodes on the same path may be interpreted as having a joint effect
  • The tree can be interpreted as a whole.

Care must be taken when interpreting individual nodes as the scores reflect a re weighting of the data in each iteration.


Data Mining
src: www.achcoop.ca


Description of the algorithm

The inputs to the alternating decision tree algorithm are:

  • A set of inputs ( x 1 , y 1 ) , ... , ( x m , y m ) {\displaystyle (x_{1},y_{1}),\ldots ,(x_{m},y_{m})} where x i {\displaystyle x_{i}} is a vector of attributes and y i {\displaystyle y_{i}} is either -1 or 1. Inputs are also called instances.
  • A set of weights w i {\displaystyle w_{i}} 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 <comparison> 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:

  • W + ( c ) {\displaystyle W_{+}(c)} returns the sum of the weights of all positively labeled examples that satisfy predicate c {\displaystyle c}
  • W - ( c ) {\displaystyle W_{-}(c)} returns the sum of the weights of all negatively labeled examples that satisfy predicate c {\displaystyle c}
  • W ( c ) = W + ( c ) + W - ( c ) {\displaystyle W(c)=W_{+}(c)+W_{-}(c)} returns the sum of the weights of all examples that satisfy predicate c {\displaystyle c}

The algorithm is as follows:

  1  function ad_tree  2  input Set of m training instances  3   4  wi = 1/m for all i  5                              a          =                                    1              2                                                          ln                                                                                            W                                      +                                                  (                t                r                u                e                )                                                              W                                      -                                                  (                t                r                u                e                )                                                        {\displaystyle a={\frac {1}{2}}{\textrm {ln}}{\frac {W_{+}(true)}{W_{-}(true)}}}      6  R0 = a rule with scores a and 0, precondition "true" and condition "true."  7                                                        P                                =          {          t          r          u          e          }                    {\displaystyle {\mathcal {P}}=\{true\}}      8                                                        C                                =                    {\displaystyle {\mathcal {C}}=}     the set of all possible conditions  9  for                             j          =          1          ...          T                    {\displaystyle j=1\dots T}      10                                  p          ?                                    P                                ,          c          ?                                    C                                          {\displaystyle p\in {\mathcal {P}},c\in {\mathcal {C}}}     get values that minimize                             z          =          2                      (                                                            W                                      +                                                  (                p                ?                c                )                                  W                                      -                                                  (                p                ?                c                )                                      +                                                            W                                      +                                                  (                p                ?                ¬                c                )                                  W                                      -                                                  (                p                ?                ¬                c                )                                      )                    +          W          (          ¬          p          )                    {\displaystyle z=2\left({\sqrt {W_{+}(p\wedge c)W_{-}(p\wedge c)}}+{\sqrt {W_{+}(p\wedge \neg c)W_{-}(p\wedge \neg c)}}\right)+W(\neg p)}      11                                                            P                                +          =          p          ?          c          +          p          ?          ¬          c                    {\displaystyle {\mathcal {P}}+=p\wedge c+p\wedge \neg c}      12                                              a                          1                                =                                    1              2                                                          ln                                                                                            W                                      +                                                  (                p                ?                c                )                +                1                                                              W                                      -                                                  (                p                ?                c                )                +                1                                                        {\displaystyle a_{1}={\frac {1}{2}}{\textrm {ln}}{\frac {W_{+}(p\wedge c)+1}{W_{-}(p\wedge c)+1}}}      13                                              a                          2                                =                                    1              2                                                          ln                                                                                            W                                      +                                                  (                p                ?                ¬                c                )                +                1                                                              W                                      -                                                  (                p                ?                ¬                c                )                +                1                                                        {\displaystyle a_{2}={\frac {1}{2}}{\textrm {ln}}{\frac {W_{+}(p\wedge \neg c)+1}{W_{-}(p\wedge \neg c)+1}}}      14      Rj = new rule with precondition p, condition c, and weights a1 and a2  15                                              w                          i                                =                      w                          i                                            e                          -                              y                                  i                                                            R                                  j                                            (                              x                                  i                                            )                                          {\displaystyle w_{i}=w_{i}e^{-y_{i}R_{j}(x_{i})}}      16  end for  17  return set of Rj  

The set P {\displaystyle {\mathcal {P}}} 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.


Disturbed EEG sleep, paranoid cognition and somatic symptoms ...
src: bjpo.rcpsych.org


Empirical results

Figure 6 in the original paper demonstrates that ADTrees are typically as robust as boosted decision trees and boosted decision stumps. Typically, equivalent accuracy can be achieved with a much simpler tree structure than recursive partitioning algorithms.


Diagnostic potential for a serum miRNA neural network for ...
src: iiif.elifesciences.org


References


Data Mining
src: www.achcoop.ca


External links

  • An introduction to Boosting and ADTrees (Has many graphical examples of alternating decision trees in practice).
  • JBoost software implementing ADTrees.

Source of the article : Wikipedia

Comments
0 Comments