22
Building And Interpreting Decision Trees in Enterprise Miner

Building And Interpreting Decision Trees in Enterprise Miner

Embed Size (px)

Citation preview

Page 1: Building And Interpreting Decision Trees in Enterprise Miner

Building And Interpreting

Decision Trees in Enterprise Miner

Page 2: Building And Interpreting Decision Trees in Enterprise Miner

Getting Up 2 Speed

Open up the HMEQ project you worked on last class. You should drop 3 nodes in EM (Input, Insight, and Partition (to separate random training and validation)

K:/(common)/tsupra/MARK2042/

Page 3: Building And Interpreting Decision Trees in Enterprise Miner

Building Decision Trees

Add a Tree Node Connect to Data

Partition Node

Page 4: Building And Interpreting Decision Trees in Enterprise Miner

Check Status, Model Role and Measurement

Page 5: Building And Interpreting Decision Trees in Enterprise Miner

Splitting Criteria: binary target variables default is

Ordinal target variables: must use Entropy or Gini. Here,We can use any of the three. These are typical statistical tests.See readings I handed out last class (WebCT).

Page 6: Building And Interpreting Decision Trees in Enterprise Miner

Close Tree Node. Run it! View the results.

Tree with 18 leaves grown based on training data, pruned back to 8Based on validation. 8-leaf model has accuracy of 89.02% of theValidation set.

Page 7: Building And Interpreting Decision Trees in Enterprise Miner

Choose View-Tree

10 leaves are visible here. New in EMVersion 8.

Page 8: Building And Interpreting Decision Trees in Enterprise Miner

Tree Options…Follow the tasks below

Page 9: Building And Interpreting Decision Trees in Enterprise Miner

Colours and Proportion of target value.

What did the 0 represent again? Leaves with all zeros willBe green. Individuals who will default on their loan will beRed.

Inspect for high percentage of bad loans (red) and good loans (green)

Page 10: Building And Interpreting Decision Trees in Enterprise Miner

Change the Statistics

Page 11: Building And Interpreting Decision Trees in Enterprise Miner

Find missing values

The branch that contains theValues greater than 45.1848 alsoContains the missing values

Page 12: Building And Interpreting Decision Trees in Enterprise Miner

Select this tab next

Page 13: Building And Interpreting Decision Trees in Enterprise Miner

View a path to the node

Right click an area

Page 14: Building And Interpreting Decision Trees in Enterprise Miner

Using Tree Options – Default Tree

Add New Tree (Default)

Make 2 changes to the basic tab. GiveThis a max and a min set of values

2*25=50 is the RULE.

Add the Assessment nodeAnd connect.

Page 15: Building And Interpreting Decision Trees in Enterprise Miner

Close and Save the changes

If you didn’t follow the RULE,You won’t be able to save.

View the results…

Page 16: Building And Interpreting Decision Trees in Enterprise Miner

Run it.

Page 17: Building And Interpreting Decision Trees in Enterprise Miner

View the tree again.

Page 18: Building And Interpreting Decision Trees in Enterprise Miner

The defaulted tree diagram.

Is yoursDifferent?

Page 19: Building And Interpreting Decision Trees in Enterprise Miner

Running The Assessment Node

Run the AssessmentNode

Select both the Trees

Page 20: Building And Interpreting Decision Trees in Enterprise Miner

Interpretation

View a Lift Chart

Results!

Page 21: Building And Interpreting Decision Trees in Enterprise Miner

Various Charts – what are they saying?

Page 22: Building And Interpreting Decision Trees in Enterprise Miner

Further Study:

See WebCT for more resources. More information on Decision Trees. Assignment 4 also up on WebCT. Group Assignment will be delivered

next class.