Machine Learning 2010

Size: px
Start display at page:

Download "Machine Learning 2010"

Transcription

1 Machine Learning 2010 Decision Trees

2 Part 1 General

3 Representation with Decision Trees (1) Examples are attribute-value vectors Representation of concepts by labeled trees Leave nodes: classes (e.g. positive / negative) inner nodes: Attributes Edges: Attribute values from the domain of the attribute at the upper node... A i w i,1 w i,2 w i,n... T i = {w i,1, w i,2,..., w i,n }

4 Decision Trees (2) Equivalent logical representation: formula in propositional logic Each path from the root to a leave represents a conjunction All paths that lead to the same class are connected by a disjunction Example: sm + size la shape ci tr + - In logic: Size = small (Size = large Shape = circle)

5 Decision Trees (3) Validation of the -relation: K1 K2 K1 K2 ( is logical implication) Concept descriptions in form of decision trees are not unique, i.e. is a quasi ordering Example: - A 1 2 B B 1 2 A

6 Decision Trees (4) (Example) positive example: (small, circle), negative example: (large, triangle) complete and consistent concept descriptions: size small size large small large + - triangle shape circle + shape - size circle triangle large small shape circle triangle

7 Quality Criteria on Trees Minimal depth of the tree: Minimal number of queries If the computation of attribute values have different costs: Minimal costs. Problem: The construction of such a decision tree is a very complex process (it is NP-complete) Therefore: Heuristic construction of decision trees

8 Logical Representation with Several Concepts Each path becomes a rule Conjunction of conditions along the path becomes the precondition Class at the leave nodes becomes the conclusion temperature warm cold windy humidity yes no high low rain sun rain snow IF Temperature = warm AND windy = yes THEN rain IF Temperature = warm AND windy = no THEN sun IF Temperature =cold AND humidity = high THEN rain IF Temperature = cold AND humidity = low THEN snow

9 Learning of Decision Trees from Examples Examples: temperature windy humidity class warm yes high rain warm no high sun cold yes high rain cold no low snow warm no low sun complete, consistent Decision tree: yes rain temperature warm cold windy humidity no high low sun rain snow

10 Alternative Decision Tree Examples: temperature windy humidity class warm yes high rain warm no high sun cold yes high rain cold no low snow warm no low sun high humidity low temperature cold warm rain windy yes rain no sun temperature cold warm snow sun

11 Part 2 The TDIDT Algorithm and Extensions

12 TDIDT (Top-Down Induction of Decision Trees) Basic Algorithm Given: set of classified examples E Algorithm: createtree (E) IF E = {} THEN RETURN leave node that is labeled with a suitable class IF all examples in E belong to the same class C THEN RETURN leave node labeled with C. Select some EFFICIENT attribute with domain {w 1,...,w n } Partition E into E 1,...,E n depending on the values of A compute recursively: T 1 := createtree(e 1 ),..., T n := createtree(e n ) RETURN Tree with root A and the edges labeled with w 1,...,w n to the subtrees T 1,...,T n

13 Parameters of the Basic Algorithm Admissible domains Choosen class if the example set of the partition is empty What is an efficient attribute?

14 ID3 (Quinlan, 1979) Conditions: Only finite domains, i.e. discrete symbolic attributes Attribute selection based on information gain Reason: Narrowing the search space Information theory provides a heuristics for attribute selection with the goal to minimize the number of queries We consider the value of some attribute as the result of a random experiment

15 Auswahl von Attributen How to Select an Efficient Attribute?(1) Possibilities: choose a random attribute choose an attribute with a minimal number of values choose an attribute with a maximal number of values choose an attribute such that the following subtrees are possibly small

16 How to Select an Efficient Attribute?(2) Select an attribute such that the following subtrees are a small as possible it contains as much information about the class of the object as possible as little additional information is necessary for finding the class of the object. Example: Suppose we are at the north pole. The attribute temparature is not efficient because we already know that it is always cold, i.e. the value of this attribute provides no information

17 How to Select an Efficient Attribute?(3) Suppose we have two boolean attributes A and B such that Prob(A= 0 ) = Prob(A =1) = 1/2 Prob(B = 0) = 0.9, Prob(B =1) = 0.1 Then the information given by A is higher than the information given by B. This view ignores, however, that we are concerned with the information with respect to the classification. If e.g. the class is already decided by the value of B then by contains more information about the classification. Next we introduce the basic information theoretic concepts

18 Information Theory for Attribute Selection Information theory as a heuristics for attribute selection with the goal to keep the average number of tests small. We consider random experiment in the sense of probability theory The results of an experiment are different events Random experiments for attribute selection: Determination of the attribute A i. Events: A i = w ij Determination of the class of an example. Events: possible classes humidity = high class: snow temperature = low

19 Information Content Suppose an experiment A is performed. What is the information content I(A) of the result A? In generai I(A) = f(p(a)), i.e. It depends on the probability. If C is the result representing the joint of independent results A and B then I(C) = I(A) + I(B) The more likely a result is the smaller is its information content. For very likely results we almost know them and do not need to ask additional queries. Requirements: If C is the result corresponding to the result of two independent events A and B then I(C) = I(A) + I(B). Consequence: f(xy) = f(x) + f(y). Normalization (arbitrary): f(½) = 1 This implies already f(x) = -ld(x), where ld is the logarithm of base

20 Entropy (1) Definition: For some experiment A with n possible disjoint results A 1,...,A n the entropy for experiment A is H( A) P( A ) ld( P( A )) Example: n i 1 i i (Expected information content) Experiment with 2 possible results A 1 and A 2 with the probabilities P(A 1 )=0.01 and P(A 2 ) = 0.99: Entropy H(A) = - (0.01 * ld(0.01) * ld(0.99)) = 0.08 [Bit]

21 Entropy (2) Consider the entropy for P(A 1 )=p and P(A 2 ) = 1-p: H(p,1 p) 1 For p = 1: H(p,1 p) = H(1,0) = 1ld(1) ld(0) = 0 For p = 0: H(p,1 p) = H(0,1) = H(1,0) = 0 For p = ½: H(p,1 p) = H(½, ½) = ½ld(½) ½ld(½) = ½ +½ = 1 For p = ¾: H(p,1 p) = H(¾, ¼) = ¾ld(¾) ¼ld(¼) = 0,811 For p = ¼: H(p,1 p) = H(¼, ¾) = H(¾, ¼) = 0,811 ½ 1 p

22 Conditional Information Content If two experiments A and B are given: When B is performed then the event B has happened Question: What is now the information content if event A happens at experiment A? I(A B) is the ínformation content of event A after B has happened: I(A B) = -ld( P(A B) )

23 Conditional Entropy Definition: If in some earlier experiment B the event B happened then the conditional entropy for experiment A under the assumption of B is: H( A B) P( A B) ld( P( A B)) i 1 Definition: If experiment B has the m disjoint outcomes B 1,...,B m, then the conditional entropy of experiment A under the assumption B is: m A B j 1 n i H( ) P( B ) H( A B ) j i j

24 Experiment (1) Three attributes: Size (small, large) Hair colour (blond, red,dark); Eye colour (blue, brown) Two classes (positive, negative) Presented examples: Size Hair colour Eye colour Class small blond blue + large red blue + large blond blue + large blond brown - small dark blue - large dark blue - large dark brown - small blond brown

25 Example (2) Experiment A : Select an example Events: A 1 = class + ; A 2 = class - Probability estimates on the basis of the examples: P(A 1 ) = 3/8 P(A 2 ) = 5/8 Entropy H(A) = - 3/8 * ld(3/8) - 5/8 * ld(5/8) = Size HairC. EyeC. Cl. Size HairC. EyC cl. small blond blue + large blond brown - large red blue + small dark blue - large blond blue + large dark blue - large dark brown - small blond brown

26 Example (3) First: Experiment B 1 : Determine attribute Size Conditional Entropy: n H( A B) P( A B) ld( P( A B)) H(A large) = -2/5 * ld(2/5) - 3/5 * ld(3/5) = H(A small) = -1/3 * ld(1/3) - 2/3 * ld(2/3) = Conditional Entropy: P(large) = 5/8 P(small) = 3/8 H(A B ) = 5/8 * /8 * = i 1 i i Size HairC. EyeC. Cl. Size HairC. EyC cl. small blond blue + large blond brown - large red blue + small dark blue - large blond blue + large dark blue - large dark brown - small blond brown

27 Example (4) First: Experiment B 1 : Determine attribute Eye color n Conditional Entropy: H( A B) P( A B) ld( P( A B)) i 1 H(A blue) = -3/5 * ld(3/5) - 2/5 * ld(2/5) = H(A brown) = -0/3 * ld(0) - 3/3 * ld(3/3) = 0 i i Conditional entropy : H(A B ) = 5/8 * /8 * 0 = Size HairC. EyeC. Cl. Size HairC. EyC cl. small blond blue + large blond brown - large red blue + small dark blue - large blond blue + large dark blue - large dark brown - small blond brown

28 Example (5) Earlier: Experiment B 1 : Determine attribute hair colour Conditional Entropy: H(A blond) = -2/4 * ld(2/4) - 2/4 * ld(2/4) = 1 H(A red) = -1 * ld(1) - 0 * ld(0) = 0 H(A dark) = -1 * ld(1) - 0 * ld(0) = 0 H( A B) P( A B) ld( P( A B)) Conditional entropy : H(A B ) = 4/8 * 1 + 1/8 * 0 + 3/8 * 0 = 0.5 n i 1 i i Size HairC. EyeC. Cl. Size HairC. EyC cl. small blond blue + large blond brown - large red blue + small dark blue - large blond blue + large dark blue - large dark brown - small blond brown

29 Selection Strategy Def.: The information gain after experiment B is H(A) - H(A B) Maximal information gain for an attribute means that H(A B) is minimal. Def.: Suppose S is a set of examples and A an attribute with Val(A) = {w 1,...,w n }. Take S j = { a S A(a) =w j } and s j = S j / S. Then the information gain of A w.r.t. S is gain(s,a) = H(S) s 1 H(S 1 )... s n H(S n ) Choose the attribute with highest information gain

30 Example (3): Optimal Tree H(..) = H(..) = Size Hair colour H(..) = 0.5 Eye colour H(..) = large small blond red dark blue brown Size H(..) = Eye colour H(..) = 1 H(..) = 0 large small blue brown

31 Important Extension C4.5 Extension by allowing (Quinlan, ca.1992) very large domains numerical (continuous) domains Combining of attribute values to groups Using given groups automatic formation of groups

32 Combination of Attribute Values in Groups Observation: Attributes with large discrete domains lead to very broad trees Partially unecessary distinctions are introduced Problem: For each partition there is only a small number of examples Therefore: Often lack of representative example sets for building subtrees Consequence: Low classification quality for new examples Basic idea: Combine values to groups

33 Formation of Groups (1) Groups are given in the representation language Possible form: Taxonomic domains Example: light colors dark white yellow orange blue green black light = { white, yellow, orange }, dark = { blue, green, black} Given: A complete partition of the domain into subsets (groups) G 1,...,G k Introduction of tests A i G 1,..., A i G k Selection of the most efficient test by the criterion of highest information gain

34 Formation of Groups (2) Groups can be given can be constructed automatically. Search for grouping with highest information gain General procedure: Hill climbing search in the space of all possible groupings Take the grouping with highest information gain

35 Algorithm for Automatic Grouping Given: Attribute A i with domain {w 1,...,w n } Actual partition of the TDIDT algorithm Algorithm: Initializing the groups W := { {w 1 },..., {w n } } REPEAT compute the information gain G for testing A i based on the actual groups W. W := W; G := G FOR each pair (U,V) W x W of groups with U V DO W = W \ { U } \ { V} { U V } (*merge 2 groups *) compute the information gain G for W IF G > G THEN W := W ; G := G UNTIL G = G OR W = 2 RETURN W

36 Extension by Numerical Domains (1) Attributes with continuous, ordered domains (e.g. natural numbers integers, reals) Introduction of a test of the form and use it for grouping: a i Z and a i > Z For a fixed Z compute the decision tree : yes A i (a) Z no Compute the information gain as before Goal: Choose Z such that the information gain is maximal Problem: There are infinitely many possibilities for Z!

37 Part 3 More Extensions

38 Extension by Numerical Domains (2) Determination of the threshold Z Suppose {v 1 <v 2...,<v m } are the values occurring in the attribute A in the examples of the partition. Consider the m-1 possible thresholds: vi vi 1 2 i=1...m-1 Select the most efficient test using the criterion of highest information gain

39 Looking at the Data There are many kinds of "noise" that could occur in the examples: Two examples have the same attribute, value pairs, but different classifications Some values of attributes are incorrect because of errors in the data acquisition process or the preprocessing phase The classification is wrong (e.g., + instead of -) because of some error Some attributes are irrelevant to the decision-making process. For example, the color of a die is irrelevant to its outcome. Consequences: Large influence of individually falsified examples Concepts get too complex Low classification quality for new examples

40 Overfitting and Underfitting There are two kinds of danger for learning correctly. First: Overfitting what means that one wants to be too exact. This occurs when the data are not fully exact because of noise or errors. Second: One is not exact enough what is called under fitting. A method that is not sufficiently complex. The model performs poorly on new examples as it is too simplistic to distinguish between new examples

41 Overfitting Avoid too special hypotheses ( overfitting ) What is the most correct classification of real data? We do not know... But we let play the test data the role of the real data When can the problem of overfitting occur? Case 1: False data Case 2: Training data are not sufficlently representative; for instance the training set is too small

42 Treatment of Noisy Examples A frequently occurring practical problem: Experiences are faulty Noise is a falsification of information contained in examples Two kinds of noise: Attribute noise: Falsification of one or more attribute values class noise: Falsification of the classification of an example Noise denotes a non-systematic error Measuring th degree of noise e.g. as percentage of falsified examples

43 Irrelevant Attributes The last problem, irrelevant attributes, can result in overfitting the training example data. For example if the hypothesis space has many dimensions because there are a large number of attributes, then we may find meaningless regularity in the data that is irrelevant to the true, important, distinguishing features. Question: How to deal with such problems? Idea: Modify the tree construction

44 Impact on Learning Methods Turning away from learning complete and consistent concepts Attempt: Try to cover as many examples as possible by simple concepts. Example: Falsely classified example

45 Pruning Up to now: Construction of a tree that classifies all seen test data correctly. If the correctness of test data is not guaranteed this is no longer meaningful and leads to overfitting. Basic idea: Stopping the generation of the tree if this is no longer meaningful Modifying a generated tree. Extensions of the TDIDT method employ pruning methods Fix by pruning lower nodes in the decision tree. For example, if Gain of the best attribute at a node is below a threshold, stop and make this node a leaf rather than generating children nodes

46 Approaches for Pruning Pre-Pruning: The construction of the decision tree is interrupted following a certain criterion even if the class is not yet determined uniquely. Replace a partial tree by a leave Post-Pruning: 1. The decision tree is completely constructed 2. Determine different variants of pruned trees 3. Select some variant that is best according to some chosen criterion (error analysis)

47 Example (1) Pruning of the decision tree: Deletion of a subtree and replacement by a leave node Example: 2 Attributes: size (small, large), weight (natural numbers) concept to be learned: size = small weight < 5 positive examples: (s,1), (s,3), (s,4), (s,10) negative examples: (s,5), (s,10), (l,1),(l,2),(l.5),(l, 9) weight large size small weight <10 10 <

48 Example (2) large size small weight weight <10 10 <5 5 Misclassification if: seize = large weight Pruned tree: - large size small weight concept is no more complete and consistent. <5 5 Only one training + - example is false classified

49 Different Criteria for Pruning Measure using the complexity of the decision tree (e.g. number of nodes) and classification error on training data Partitioning of the set of training examples in a) a set for constructing the decision tree and b) a set for testing the classification quality for different variations of the Prunings. Select the variant with highest classification quality. Statistical methods for estimating the classification error

50 Remarks on Pruning Cost-complexity pruning usually gives best results in experimental studies. Pessimistic pruning is most efficient and quite robust. Reduce-error pruning is rarely used, because it consumes training data. Pruning has relatively little effect on the correctness of classification. There is only a small number of possible prunings of a tree, and usually the serious errors made by splitting on the wrong nodes cannot be repaired by pruning

51 Missing Values (1) Situation: Some attribute values are not represented unknown, too difficult to acquire etc. Representation: A i (a) =? An approach: Construct a tree that is not totally correct even on the test data Extend the values by a new value? Extend the concept of information and use the previous tree generation methods Take into account the not all examples are equally reliable The last aspect can be realized by introducing a weight for the examples: w(a) [0, 1]

52 Missing Values (2) Put for an attribute A and an example set S: S! = {a S I A(a)?} IISII = S a S w(a) Now we can define a modified gain mod (S,A) by: gain mod (S,A) = IIS! II /IISII*gain(S,A) This allows to proceed the construction of the tree as before and we can use the same algorithm

53 Advantages: Evaluation of TDIDT Methods Disjunctive concepts can be learned Several disjoint classes can be learned Efficieny by heuristic search restriction decision trees provide a strategy for chosing tests Disadvantages: Only attribute-value vectors for example representation Restricted to decision trees for concept representation Not incremental There are further variations to avoide these disadvantages

54 C4.5 ( ID3 Extension ) (1) One of the solution to solve this shortcoming of ID3 is presented in C4.5 which is an extension of ID3. At each node of the tree, C4.5 chooses one attribute of the data that most effectively splits its set of samples into subsets enriched in one class or the other. Its criterion is the normalized information gain(difference in entropy) that results from choosing an attribute for splitting the data. The attribute with the highest normalized information gain is chosen to make the decision.

55 C4.5 (2) Introducing a parameter called a Split Information which is defined as: Split Information is a parameter that is sensitive to how broadly and uniformly the attribute splits the data

56 C4.5 ( Continued ) Instead of using Information Gain to choose an attribute in ID3, C4.5 uses Gain Ratio, which is defined as:

57 Algorithm (Sketch) For each attribute a Find the normalized information gain from splitting on a Let A_best be the attribute with the highest normalized information gain Create a decision node that splits on Aa_best Recurse on the sublists obtained by splitting on A_best, and add those nodes as children of node

58 Example (1) When to play golf? prediction play? occurences sunny yes 2x sunny no 3x cloudy yes 4x rain yes 3x rainy no 2x

59 Example (2) Info = - 9/14 ld (9/14) - 5/14 ld (5/14) = 0,940 bit Info Si = 5/14 ( - 2/5 ld (2/5) - 3/5 ld (3/5)) + 4/14 (- 4/4 ld (4/4) - 0/4 ld (0/4)) + 5/14 ( - 3/5 ld (3/5) - 2/5 ld (2/5)) = 0,694 bit => gain= 0,940 bit - 0,694 bits = 0,246 bit split info = -5/14 ld (5/14) - 4/14 ld (4/14) - 5/14 ld (5/14) = 1,577 bit gain ratio = 0,246 bit / 1,577 bits = 0,156 bit

60 Improvements of C4.5 over ID3 C4.5 made a number of improvements to ID3. Some of these are: Handling both continuous and discrete attributes - In order to handle continuous attributes, C4.5 creates a threshold and then splits the list into those whose attribute value is above the threshold and those that are less than or equal to it. [3] Handling training data with missing attribute values - C4.5 allows attribute values to be marked as? for missing. Missing attribute values are simply not used in gain and entropy calculations. Handling attributes with differing costs.

61 Further Improvement: C5.0 Speed - C5.0 is significantly faster than C4.5 (several orders of magnitude) Memory usage - C5.0 is more memory efficient than C4.5 Smaller decision trees - C5.0 gets similar results to C4.5 with considerably smaller decision trees. Weighting - C5.0 allows to weight different attributes and misclassification types. C5. is a commercial and closed-source product, although free source code is available for interpreting and using the decision trees and rule sets it outputs

62 Cross-Validation for Experimental Validation of Performance 1. Divide all examples into N disjoint subsets, E = E1, E2,..., EN 2. For each i = 1,..., N do * Test set = Ei * Training set = E - Ei * Compute decision tree using Training set * Determine performance accuracy Pi using Test set 3. Compute N-fold cross-validation estimate of performance = (P1 + P PN)/N

63 Applications Any kind of classification or diagnostic support where supervised learning takes place, in particular symbolic descriptions, e.g: Classification of reliable or not reliable banking customers Classification of car faults Classification of holiday resources Product lines

64 Tools Palisade: All New Decision Trees Suite C 5.0: WEKA 3 Matlab

65 Summary One of the most widely used learning methods in practice Can out-perform human experts in many problems Strengths: Fast; simple to implement; can convert result to a set of easily interpretable rules; empirically valid in many commercial products; handles noisy data Weaknesses: "Univariate" splits/partitioning using only one attribute at a time so limits types of possible trees; large decision trees may be hard to understand; requires fixed-length feature vectors; non-incremental (i.e., batch method) C4.5 and C

66 Recommended References J.R. Quinlan: Learning Efficient Classification Procedures and their Applications to Chess End Games. In: Machine Learning - An Artificial Intelligence Approach, ed. R.S. Michalski et al. Tioga,

CS 6375 Machine Learning

CS 6375 Machine Learning CS 6375 Machine Learning Decision Trees Instructor: Yang Liu 1 Supervised Classifier X 1 X 2. X M Ref class label 2 1 Three variables: Attribute 1: Hair = {blond, dark} Attribute 2: Height = {tall, short}

More information

Decision Tree Learning

Decision Tree Learning Decision Tree Learning Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University References: 1. Machine Learning, Chapter 3 2. Data Mining: Concepts, Models,

More information

ML techniques. symbolic techniques different types of representation value attribute representation representation of the first order

ML techniques. symbolic techniques different types of representation value attribute representation representation of the first order MACHINE LEARNING Definition 1: Learning is constructing or modifying representations of what is being experienced [Michalski 1986], p. 10 Definition 2: Learning denotes changes in the system That are adaptive

More information

Lecture 3: Decision Trees

Lecture 3: Decision Trees Lecture 3: Decision Trees Cognitive Systems II - Machine Learning SS 2005 Part I: Basic Approaches of Concept Learning ID3, Information Gain, Overfitting, Pruning Lecture 3: Decision Trees p. Decision

More information

Dan Roth 461C, 3401 Walnut

Dan Roth   461C, 3401 Walnut CIS 519/419 Applied Machine Learning www.seas.upenn.edu/~cis519 Dan Roth danroth@seas.upenn.edu http://www.cis.upenn.edu/~danroth/ 461C, 3401 Walnut Slides were created by Dan Roth (for CIS519/419 at Penn

More information

CS6375: Machine Learning Gautam Kunapuli. Decision Trees

CS6375: Machine Learning Gautam Kunapuli. Decision Trees Gautam Kunapuli Example: Restaurant Recommendation Example: Develop a model to recommend restaurants to users depending on their past dining experiences. Here, the features are cost (x ) and the user s

More information

Lecture 3: Decision Trees

Lecture 3: Decision Trees Lecture 3: Decision Trees Cognitive Systems - Machine Learning Part I: Basic Approaches of Concept Learning ID3, Information Gain, Overfitting, Pruning last change November 26, 2014 Ute Schmid (CogSys,

More information

Learning Decision Trees

Learning Decision Trees Learning Decision Trees Machine Learning Fall 2018 Some slides from Tom Mitchell, Dan Roth and others 1 Key issues in machine learning Modeling How to formulate your problem as a machine learning problem?

More information

Classification: Decision Trees

Classification: Decision Trees Classification: Decision Trees Outline Top-Down Decision Tree Construction Choosing the Splitting Attribute Information Gain and Gain Ratio 2 DECISION TREE An internal node is a test on an attribute. A

More information

Machine Learning & Data Mining

Machine Learning & Data Mining Group M L D Machine Learning M & Data Mining Chapter 7 Decision Trees Xin-Shun Xu @ SDU School of Computer Science and Technology, Shandong University Top 10 Algorithm in DM #1: C4.5 #2: K-Means #3: SVM

More information

Decision Trees.

Decision Trees. . Machine Learning Decision Trees Prof. Dr. Martin Riedmiller AG Maschinelles Lernen und Natürlichsprachliche Systeme Institut für Informatik Technische Fakultät Albert-Ludwigs-Universität Freiburg riedmiller@informatik.uni-freiburg.de

More information

CS 380: ARTIFICIAL INTELLIGENCE MACHINE LEARNING. Santiago Ontañón

CS 380: ARTIFICIAL INTELLIGENCE MACHINE LEARNING. Santiago Ontañón CS 380: ARTIFICIAL INTELLIGENCE MACHINE LEARNING Santiago Ontañón so367@drexel.edu Summary so far: Rational Agents Problem Solving Systematic Search: Uninformed Informed Local Search Adversarial Search

More information

Learning Decision Trees

Learning Decision Trees Learning Decision Trees Machine Learning Spring 2018 1 This lecture: Learning Decision Trees 1. Representation: What are decision trees? 2. Algorithm: Learning decision trees The ID3 algorithm: A greedy

More information

Decision Tree Learning

Decision Tree Learning Topics Decision Tree Learning Sattiraju Prabhakar CS898O: DTL Wichita State University What are decision trees? How do we use them? New Learning Task ID3 Algorithm Weka Demo C4.5 Algorithm Weka Demo Implementation

More information

Classification: Decision Trees

Classification: Decision Trees Classification: Decision Trees These slides were assembled by Byron Boots, with grateful acknowledgement to Eric Eaton and the many others who made their course materials freely available online. Feel

More information

the tree till a class assignment is reached

the tree till a class assignment is reached Decision Trees Decision Tree for Playing Tennis Prediction is done by sending the example down Prediction is done by sending the example down the tree till a class assignment is reached Definitions Internal

More information

EECS 349:Machine Learning Bryan Pardo

EECS 349:Machine Learning Bryan Pardo EECS 349:Machine Learning Bryan Pardo Topic 2: Decision Trees (Includes content provided by: Russel & Norvig, D. Downie, P. Domingos) 1 General Learning Task There is a set of possible examples Each example

More information

Decision Tree Learning and Inductive Inference

Decision Tree Learning and Inductive Inference Decision Tree Learning and Inductive Inference 1 Widely used method for inductive inference Inductive Inference Hypothesis: Any hypothesis found to approximate the target function well over a sufficiently

More information

Decision trees. Special Course in Computer and Information Science II. Adam Gyenge Helsinki University of Technology

Decision trees. Special Course in Computer and Information Science II. Adam Gyenge Helsinki University of Technology Decision trees Special Course in Computer and Information Science II Adam Gyenge Helsinki University of Technology 6.2.2008 Introduction Outline: Definition of decision trees ID3 Pruning methods Bibliography:

More information

Question of the Day. Machine Learning 2D1431. Decision Tree for PlayTennis. Outline. Lecture 4: Decision Tree Learning

Question of the Day. Machine Learning 2D1431. Decision Tree for PlayTennis. Outline. Lecture 4: Decision Tree Learning Question of the Day Machine Learning 2D1431 How can you make the following equation true by drawing only one straight line? 5 + 5 + 5 = 550 Lecture 4: Decision Tree Learning Outline Decision Tree for PlayTennis

More information

DECISION TREE LEARNING. [read Chapter 3] [recommended exercises 3.1, 3.4]

DECISION TREE LEARNING. [read Chapter 3] [recommended exercises 3.1, 3.4] 1 DECISION TREE LEARNING [read Chapter 3] [recommended exercises 3.1, 3.4] Decision tree representation ID3 learning algorithm Entropy, Information gain Overfitting Decision Tree 2 Representation: Tree-structured

More information

Decision Trees.

Decision Trees. . Machine Learning Decision Trees Prof. Dr. Martin Riedmiller AG Maschinelles Lernen und Natürlichsprachliche Systeme Institut für Informatik Technische Fakultät Albert-Ludwigs-Universität Freiburg riedmiller@informatik.uni-freiburg.de

More information

Learning Classification Trees. Sargur Srihari

Learning Classification Trees. Sargur Srihari Learning Classification Trees Sargur srihari@cedar.buffalo.edu 1 Topics in CART CART as an adaptive basis function model Classification and Regression Tree Basics Growing a Tree 2 A Classification Tree

More information

Machine Learning 3. week

Machine Learning 3. week Machine Learning 3. week Entropy Decision Trees ID3 C4.5 Classification and Regression Trees (CART) 1 What is Decision Tree As a short description, decision tree is a data classification procedure which

More information

Notes on Machine Learning for and

Notes on Machine Learning for and Notes on Machine Learning for 16.410 and 16.413 (Notes adapted from Tom Mitchell and Andrew Moore.) Learning = improving with experience Improve over task T (e.g, Classification, control tasks) with respect

More information

Supervised Learning! Algorithm Implementations! Inferring Rudimentary Rules and Decision Trees!

Supervised Learning! Algorithm Implementations! Inferring Rudimentary Rules and Decision Trees! Supervised Learning! Algorithm Implementations! Inferring Rudimentary Rules and Decision Trees! Summary! Input Knowledge representation! Preparing data for learning! Input: Concept, Instances, Attributes"

More information

Classification and Prediction

Classification and Prediction Classification Classification and Prediction Classification: predict categorical class labels Build a model for a set of classes/concepts Classify loan applications (approve/decline) Prediction: model

More information

Introduction. Decision Tree Learning. Outline. Decision Tree 9/7/2017. Decision Tree Definition

Introduction. Decision Tree Learning. Outline. Decision Tree 9/7/2017. Decision Tree Definition Introduction Decision Tree Learning Practical methods for inductive inference Approximating discrete-valued functions Robust to noisy data and capable of learning disjunctive expression ID3 earch a completely

More information

Machine Learning Alternatives to Manual Knowledge Acquisition

Machine Learning Alternatives to Manual Knowledge Acquisition Machine Learning Alternatives to Manual Knowledge Acquisition Interactive programs which elicit knowledge from the expert during the course of a conversation at the terminal. Programs which learn by scanning

More information

M chi h n i e n L e L arni n n i g Decision Trees Mac a h c i h n i e n e L e L a e r a ni n ng

M chi h n i e n L e L arni n n i g Decision Trees Mac a h c i h n i e n e L e L a e r a ni n ng 1 Decision Trees 2 Instances Describable by Attribute-Value Pairs Target Function Is Discrete Valued Disjunctive Hypothesis May Be Required Possibly Noisy Training Data Examples Equipment or medical diagnosis

More information

Decision Tree Learning Mitchell, Chapter 3. CptS 570 Machine Learning School of EECS Washington State University

Decision Tree Learning Mitchell, Chapter 3. CptS 570 Machine Learning School of EECS Washington State University Decision Tree Learning Mitchell, Chapter 3 CptS 570 Machine Learning School of EECS Washington State University Outline Decision tree representation ID3 learning algorithm Entropy and information gain

More information

Induction of Decision Trees

Induction of Decision Trees Induction of Decision Trees Peter Waiganjo Wagacha This notes are for ICS320 Foundations of Learning and Adaptive Systems Institute of Computer Science University of Nairobi PO Box 30197, 00200 Nairobi.

More information

Apprentissage automatique et fouille de données (part 2)

Apprentissage automatique et fouille de données (part 2) Apprentissage automatique et fouille de données (part 2) Telecom Saint-Etienne Elisa Fromont (basé sur les cours d Hendrik Blockeel et de Tom Mitchell) 1 Induction of decision trees : outline (adapted

More information

Chapter 6: Classification

Chapter 6: Classification Chapter 6: Classification 1) Introduction Classification problem, evaluation of classifiers, prediction 2) Bayesian Classifiers Bayes classifier, naive Bayes classifier, applications 3) Linear discriminant

More information

Decision Trees. Tirgul 5

Decision Trees. Tirgul 5 Decision Trees Tirgul 5 Using Decision Trees It could be difficult to decide which pet is right for you. We ll find a nice algorithm to help us decide what to choose without having to think about it. 2

More information

Data classification (II)

Data classification (II) Lecture 4: Data classification (II) Data Mining - Lecture 4 (2016) 1 Outline Decision trees Choice of the splitting attribute ID3 C4.5 Classification rules Covering algorithms Naïve Bayes Classification

More information

Decision Trees. Lewis Fishgold. (Material in these slides adapted from Ray Mooney's slides on Decision Trees)

Decision Trees. Lewis Fishgold. (Material in these slides adapted from Ray Mooney's slides on Decision Trees) Decision Trees Lewis Fishgold (Material in these slides adapted from Ray Mooney's slides on Decision Trees) Classification using Decision Trees Nodes test features, there is one branch for each value of

More information

http://xkcd.com/1570/ Strategy: Top Down Recursive divide-and-conquer fashion First: Select attribute for root node Create branch for each possible attribute value Then: Split

More information

Introduction to ML. Two examples of Learners: Naïve Bayesian Classifiers Decision Trees

Introduction to ML. Two examples of Learners: Naïve Bayesian Classifiers Decision Trees Introduction to ML Two examples of Learners: Naïve Bayesian Classifiers Decision Trees Why Bayesian learning? Probabilistic learning: Calculate explicit probabilities for hypothesis, among the most practical

More information

Machine Learning 2010

Machine Learning 2010 Machine Learning 2010 Concept Learning: The Logical Approach Michael M Richter Email: mrichter@ucalgary.ca 1 - Part 1 Basic Concepts and Representation Languages 2 - Why Concept Learning? Concepts describe

More information

Decision Tree. Decision Tree Learning. c4.5. Example

Decision Tree. Decision Tree Learning. c4.5. Example Decision ree Decision ree Learning s of systems that learn decision trees: c4., CLS, IDR, ASSISA, ID, CAR, ID. Suitable problems: Instances are described by attribute-value couples he target function has

More information

brainlinksystem.com $25+ / hr AI Decision Tree Learning Part I Outline Learning 11/9/2010 Carnegie Mellon

brainlinksystem.com $25+ / hr AI Decision Tree Learning Part I Outline Learning 11/9/2010 Carnegie Mellon I Decision Tree Learning Part I brainlinksystem.com $25+ / hr Illah Nourbakhsh s version Chapter 8, Russell and Norvig Thanks to all past instructors Carnegie Mellon Outline Learning and philosophy Induction

More information

Induction on Decision Trees

Induction on Decision Trees Séance «IDT» de l'ue «apprentissage automatique» Bruno Bouzy bruno.bouzy@parisdescartes.fr www.mi.parisdescartes.fr/~bouzy Outline Induction task ID3 Entropy (disorder) minimization Noise Unknown attribute

More information

Decision Trees. CSC411/2515: Machine Learning and Data Mining, Winter 2018 Luke Zettlemoyer, Carlos Guestrin, and Andrew Moore

Decision Trees. CSC411/2515: Machine Learning and Data Mining, Winter 2018 Luke Zettlemoyer, Carlos Guestrin, and Andrew Moore Decision Trees Claude Monet, The Mulberry Tree Slides from Pedro Domingos, CSC411/2515: Machine Learning and Data Mining, Winter 2018 Luke Zettlemoyer, Carlos Guestrin, and Andrew Moore Michael Guerzhoy

More information

Inductive Learning. Chapter 18. Material adopted from Yun Peng, Chuck Dyer, Gregory Piatetsky-Shapiro & Gary Parker

Inductive Learning. Chapter 18. Material adopted from Yun Peng, Chuck Dyer, Gregory Piatetsky-Shapiro & Gary Parker Inductive Learning Chapter 18 Material adopted from Yun Peng, Chuck Dyer, Gregory Piatetsky-Shapiro & Gary Parker Chapters 3 and 4 Inductive Learning Framework Induce a conclusion from the examples Raw

More information

Einführung in Web- und Data-Science

Einführung in Web- und Data-Science Einführung in Web- und Data-Science Prof. Dr. Ralf Möller Universität zu Lübeck Institut für Informationssysteme Tanya Braun (Übungen) Inductive Learning Chapter 18/19 Chapters 3 and 4 Material adopted

More information

Holdout and Cross-Validation Methods Overfitting Avoidance

Holdout and Cross-Validation Methods Overfitting Avoidance Holdout and Cross-Validation Methods Overfitting Avoidance Decision Trees Reduce error pruning Cost-complexity pruning Neural Networks Early stopping Adjusting Regularizers via Cross-Validation Nearest

More information

Classification and Regression Trees

Classification and Regression Trees Classification and Regression Trees Ryan P Adams So far, we have primarily examined linear classifiers and regressors, and considered several different ways to train them When we ve found the linearity

More information

Outline. Training Examples for EnjoySport. 2 lecture slides for textbook Machine Learning, c Tom M. Mitchell, McGraw Hill, 1997

Outline. Training Examples for EnjoySport. 2 lecture slides for textbook Machine Learning, c Tom M. Mitchell, McGraw Hill, 1997 Outline Training Examples for EnjoySport Learning from examples General-to-specific ordering over hypotheses [read Chapter 2] [suggested exercises 2.2, 2.3, 2.4, 2.6] Version spaces and candidate elimination

More information

Decision Trees. Nicholas Ruozzi University of Texas at Dallas. Based on the slides of Vibhav Gogate and David Sontag

Decision Trees. Nicholas Ruozzi University of Texas at Dallas. Based on the slides of Vibhav Gogate and David Sontag Decision Trees Nicholas Ruozzi University of Texas at Dallas Based on the slides of Vibhav Gogate and David Sontag Supervised Learning Input: labelled training data i.e., data plus desired output Assumption:

More information

Tutorial 6. By:Aashmeet Kalra

Tutorial 6. By:Aashmeet Kalra Tutorial 6 By:Aashmeet Kalra AGENDA Candidate Elimination Algorithm Example Demo of Candidate Elimination Algorithm Decision Trees Example Demo of Decision Trees Concept and Concept Learning A Concept

More information

Decision Trees Entropy, Information Gain, Gain Ratio

Decision Trees Entropy, Information Gain, Gain Ratio Changelog: 14 Oct, 30 Oct Decision Trees Entropy, Information Gain, Gain Ratio Lecture 3: Part 2 Outline Entropy Information gain Gain ratio Marina Santini Acknowledgements Slides borrowed and adapted

More information

Decision Trees. Gavin Brown

Decision Trees. Gavin Brown Decision Trees Gavin Brown Every Learning Method has Limitations Linear model? KNN? SVM? Explain your decisions Sometimes we need interpretable results from our techniques. How do you explain the above

More information

Decision Tree Learning

Decision Tree Learning Decision Tree Learning Goals for the lecture you should understand the following concepts the decision tree representation the standard top-down approach to learning a tree Occam s razor entropy and information

More information

Midterm, Fall 2003

Midterm, Fall 2003 5-78 Midterm, Fall 2003 YOUR ANDREW USERID IN CAPITAL LETTERS: YOUR NAME: There are 9 questions. The ninth may be more time-consuming and is worth only three points, so do not attempt 9 unless you are

More information

Classification and regression trees

Classification and regression trees Classification and regression trees Pierre Geurts p.geurts@ulg.ac.be Last update: 23/09/2015 1 Outline Supervised learning Decision tree representation Decision tree learning Extensions Regression trees

More information

Lecture 7: DecisionTrees

Lecture 7: DecisionTrees Lecture 7: DecisionTrees What are decision trees? Brief interlude on information theory Decision tree construction Overfitting avoidance Regression trees COMP-652, Lecture 7 - September 28, 2009 1 Recall:

More information

Administrative notes. Computational Thinking ct.cs.ubc.ca

Administrative notes. Computational Thinking ct.cs.ubc.ca Administrative notes Labs this week: project time. Remember, you need to pass the project in order to pass the course! (See course syllabus.) Clicker grades should be on-line now Administrative notes March

More information

Empirical Risk Minimization, Model Selection, and Model Assessment

Empirical Risk Minimization, Model Selection, and Model Assessment Empirical Risk Minimization, Model Selection, and Model Assessment CS6780 Advanced Machine Learning Spring 2015 Thorsten Joachims Cornell University Reading: Murphy 5.7-5.7.2.4, 6.5-6.5.3.1 Dietterich,

More information

Data Mining and Machine Learning

Data Mining and Machine Learning Data Mining and Machine Learning Concept Learning and Version Spaces Introduction Concept Learning Generality Relations Refinement Operators Structured Hypothesis Spaces Simple algorithms Find-S Find-G

More information

Decision Trees Part 1. Rao Vemuri University of California, Davis

Decision Trees Part 1. Rao Vemuri University of California, Davis Decision Trees Part 1 Rao Vemuri University of California, Davis Overview What is a Decision Tree Sample Decision Trees How to Construct a Decision Tree Problems with Decision Trees Classification Vs Regression

More information

Classification: Rule Induction Information Retrieval and Data Mining. Prof. Matteo Matteucci

Classification: Rule Induction Information Retrieval and Data Mining. Prof. Matteo Matteucci Classification: Rule Induction Information Retrieval and Data Mining Prof. Matteo Matteucci What is Rule Induction? The Weather Dataset 3 Outlook Temp Humidity Windy Play Sunny Hot High False No Sunny

More information

Data Mining. CS57300 Purdue University. Bruno Ribeiro. February 8, 2018

Data Mining. CS57300 Purdue University. Bruno Ribeiro. February 8, 2018 Data Mining CS57300 Purdue University Bruno Ribeiro February 8, 2018 Decision trees Why Trees? interpretable/intuitive, popular in medical applications because they mimic the way a doctor thinks model

More information

Decision Tree Learning Lecture 2

Decision Tree Learning Lecture 2 Machine Learning Coms-4771 Decision Tree Learning Lecture 2 January 28, 2008 Two Types of Supervised Learning Problems (recap) Feature (input) space X, label (output) space Y. Unknown distribution D over

More information

Learning Decision Trees

Learning Decision Trees Learning Decision Trees CS194-10 Fall 2011 Lecture 8 CS194-10 Fall 2011 Lecture 8 1 Outline Decision tree models Tree construction Tree pruning Continuous input features CS194-10 Fall 2011 Lecture 8 2

More information

Decision Trees. Introduction. Some facts about decision trees: They represent data-classification models.

Decision Trees. Introduction. Some facts about decision trees: They represent data-classification models. Decision Trees Introduction Some facts about decision trees: They represent data-classification models. An internal node of the tree represents a question about feature-vector attribute, and whose answer

More information

Imagine we ve got a set of data containing several types, or classes. E.g. information about customers, and class=whether or not they buy anything.

Imagine we ve got a set of data containing several types, or classes. E.g. information about customers, and class=whether or not they buy anything. Decision Trees Defining the Task Imagine we ve got a set of data containing several types, or classes. E.g. information about customers, and class=whether or not they buy anything. Can we predict, i.e

More information

Decision Tree Learning

Decision Tree Learning Decision Tree Learning Goals for the lecture you should understand the following concepts the decision tree representation the standard top-down approach to learning a tree Occam s razor entropy and information

More information

CS 380: ARTIFICIAL INTELLIGENCE

CS 380: ARTIFICIAL INTELLIGENCE CS 380: ARTIFICIAL INTELLIGENCE MACHINE LEARNING 11/11/2013 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2013/cs380/intro.html Summary so far: Rational Agents Problem

More information

Universität Potsdam Institut für Informatik Lehrstuhl Maschinelles Lernen. Intelligent Data Analysis. Decision Trees

Universität Potsdam Institut für Informatik Lehrstuhl Maschinelles Lernen. Intelligent Data Analysis. Decision Trees Universität Potsdam Institut für Informatik Lehrstuhl Maschinelles Lernen Intelligent Data Analysis Decision Trees Paul Prasse, Niels Landwehr, Tobias Scheffer Decision Trees One of many applications:

More information

Decision Trees. Data Science: Jordan Boyd-Graber University of Maryland MARCH 11, Data Science: Jordan Boyd-Graber UMD Decision Trees 1 / 1

Decision Trees. Data Science: Jordan Boyd-Graber University of Maryland MARCH 11, Data Science: Jordan Boyd-Graber UMD Decision Trees 1 / 1 Decision Trees Data Science: Jordan Boyd-Graber University of Maryland MARCH 11, 2018 Data Science: Jordan Boyd-Graber UMD Decision Trees 1 / 1 Roadmap Classification: machines labeling data for us Last

More information

Decision T ree Tree Algorithm Week 4 1

Decision T ree Tree Algorithm Week 4 1 Decision Tree Algorithm Week 4 1 Team Homework Assignment #5 Read pp. 105 117 of the text book. Do Examples 3.1, 3.2, 3.3 and Exercise 3.4 (a). Prepare for the results of the homework assignment. Due date

More information

[read Chapter 2] [suggested exercises 2.2, 2.3, 2.4, 2.6] General-to-specific ordering over hypotheses

[read Chapter 2] [suggested exercises 2.2, 2.3, 2.4, 2.6] General-to-specific ordering over hypotheses 1 CONCEPT LEARNING AND THE GENERAL-TO-SPECIFIC ORDERING [read Chapter 2] [suggested exercises 2.2, 2.3, 2.4, 2.6] Learning from examples General-to-specific ordering over hypotheses Version spaces and

More information

Decision Trees. Danushka Bollegala

Decision Trees. Danushka Bollegala Decision Trees Danushka Bollegala Rule-based Classifiers In rule-based learning, the idea is to learn a rule from train data in the form IF X THEN Y (or a combination of nested conditions) that explains

More information

Decision Tree Learning

Decision Tree Learning 0. Decision Tree Learning Based on Machine Learning, T. Mitchell, McGRAW Hill, 1997, ch. 3 Acknowledgement: The present slides are an adaptation of slides drawn by T. Mitchell PLAN 1. Concept learning:

More information

Machine Learning. Lecture 9: Learning Theory. Feng Li.

Machine Learning. Lecture 9: Learning Theory. Feng Li. Machine Learning Lecture 9: Learning Theory Feng Li fli@sdu.edu.cn https://funglee.github.io School of Computer Science and Technology Shandong University Fall 2018 Why Learning Theory How can we tell

More information

Machine Learning 2nd Edi7on

Machine Learning 2nd Edi7on Lecture Slides for INTRODUCTION TO Machine Learning 2nd Edi7on CHAPTER 9: Decision Trees ETHEM ALPAYDIN The MIT Press, 2010 Edited and expanded for CS 4641 by Chris Simpkins alpaydin@boun.edu.tr h1p://www.cmpe.boun.edu.tr/~ethem/i2ml2e

More information

Machine Learning Recitation 8 Oct 21, Oznur Tastan

Machine Learning Recitation 8 Oct 21, Oznur Tastan Machine Learning 10601 Recitation 8 Oct 21, 2009 Oznur Tastan Outline Tree representation Brief information theory Learning decision trees Bagging Random forests Decision trees Non linear classifier Easy

More information

Decision-Tree Learning. Chapter 3: Decision Tree Learning. Classification Learning. Decision Tree for PlayTennis

Decision-Tree Learning. Chapter 3: Decision Tree Learning. Classification Learning. Decision Tree for PlayTennis Decision-Tree Learning Chapter 3: Decision Tree Learning CS 536: Machine Learning Littman (Wu, TA) [read Chapter 3] [some of Chapter 2 might help ] [recommended exercises 3.1, 3.2] Decision tree representation

More information

Decision Trees. CS57300 Data Mining Fall Instructor: Bruno Ribeiro

Decision Trees. CS57300 Data Mining Fall Instructor: Bruno Ribeiro Decision Trees CS57300 Data Mining Fall 2016 Instructor: Bruno Ribeiro Goal } Classification without Models Well, partially without a model } Today: Decision Trees 2015 Bruno Ribeiro 2 3 Why Trees? } interpretable/intuitive,

More information

Decision Trees (Cont.)

Decision Trees (Cont.) Decision Trees (Cont.) R&N Chapter 18.2,18.3 Side example with discrete (categorical) attributes: Predicting age (3 values: less than 30, 30-45, more than 45 yrs old) from census data. Attributes (split

More information

CHAPTER-17. Decision Tree Induction

CHAPTER-17. Decision Tree Induction CHAPTER-17 Decision Tree Induction 17.1 Introduction 17.2 Attribute selection measure 17.3 Tree Pruning 17.4 Extracting Classification Rules from Decision Trees 17.5 Bayesian Classification 17.6 Bayes

More information

Decision Tree Analysis for Classification Problems. Entscheidungsunterstützungssysteme SS 18

Decision Tree Analysis for Classification Problems. Entscheidungsunterstützungssysteme SS 18 Decision Tree Analysis for Classification Problems Entscheidungsunterstützungssysteme SS 18 Supervised segmentation An intuitive way of thinking about extracting patterns from data in a supervised manner

More information

Chapter 3: Decision Tree Learning

Chapter 3: Decision Tree Learning Chapter 3: Decision Tree Learning CS 536: Machine Learning Littman (Wu, TA) Administration Books? New web page: http://www.cs.rutgers.edu/~mlittman/courses/ml03/ schedule lecture notes assignment info.

More information

Decision Trees. Each internal node : an attribute Branch: Outcome of the test Leaf node or terminal node: class label.

Decision Trees. Each internal node : an attribute Branch: Outcome of the test Leaf node or terminal node: class label. Decision Trees Supervised approach Used for Classification (Categorical values) or regression (continuous values). The learning of decision trees is from class-labeled training tuples. Flowchart like structure.

More information

Chapter 3: Decision Tree Learning (part 2)

Chapter 3: Decision Tree Learning (part 2) Chapter 3: Decision Tree Learning (part 2) CS 536: Machine Learning Littman (Wu, TA) Administration Books? Two on reserve in the math library. icml-03: instructional Conference on Machine Learning mailing

More information

Introduction to machine learning. Concept learning. Design of a learning system. Designing a learning system

Introduction to machine learning. Concept learning. Design of a learning system. Designing a learning system Introduction to machine learning Concept learning Maria Simi, 2011/2012 Machine Learning, Tom Mitchell Mc Graw-Hill International Editions, 1997 (Cap 1, 2). Introduction to machine learning When appropriate

More information

Decision Tree Learning - ID3

Decision Tree Learning - ID3 Decision Tree Learning - ID3 n Decision tree examples n ID3 algorithm n Occam Razor n Top-Down Induction in Decision Trees n Information Theory n gain from property 1 Training Examples Day Outlook Temp.

More information

Decision Trees / NLP Introduction

Decision Trees / NLP Introduction Decision Trees / NLP Introduction Dr. Kevin Koidl School of Computer Science and Statistic Trinity College Dublin ADAPT Research Centre The ADAPT Centre is funded under the SFI Research Centres Programme

More information

Decision Tree Learning

Decision Tree Learning Topics Decision Tree Learning Sattiraju Prabhakar CS898O: DTL Wichita State University What are decision trees? How do we use them? New Learning Task ID3 Algorithm Weka Demo C4.5 Algorithm Weka Demo Implementation

More information

Jeffrey D. Ullman Stanford University

Jeffrey D. Ullman Stanford University Jeffrey D. Ullman Stanford University 3 We are given a set of training examples, consisting of input-output pairs (x,y), where: 1. x is an item of the type we want to evaluate. 2. y is the value of some

More information

The exam is closed book, closed calculator, and closed notes except your one-page crib sheet.

The exam is closed book, closed calculator, and closed notes except your one-page crib sheet. CS 188 Fall 2015 Introduction to Artificial Intelligence Final You have approximately 2 hours and 50 minutes. The exam is closed book, closed calculator, and closed notes except your one-page crib sheet.

More information

Artificial Intelligence Decision Trees

Artificial Intelligence Decision Trees Artificial Intelligence Decision Trees Andrea Torsello Decision Trees Complex decisions can often be expressed in terms of a series of questions: What to do this Weekend? If my parents are visiting We

More information

Predictive Modeling: Classification. KSE 521 Topic 6 Mun Yi

Predictive Modeling: Classification. KSE 521 Topic 6 Mun Yi Predictive Modeling: Classification Topic 6 Mun Yi Agenda Models and Induction Entropy and Information Gain Tree-Based Classifier Probability Estimation 2 Introduction Key concept of BI: Predictive modeling

More information

Administration. Chapter 3: Decision Tree Learning (part 2) Measuring Entropy. Entropy Function

Administration. Chapter 3: Decision Tree Learning (part 2) Measuring Entropy. Entropy Function Administration Chapter 3: Decision Tree Learning (part 2) Book on reserve in the math library. Questions? CS 536: Machine Learning Littman (Wu, TA) Measuring Entropy Entropy Function S is a sample of training

More information

The Solution to Assignment 6

The Solution to Assignment 6 The Solution to Assignment 6 Problem 1: Use the 2-fold cross-validation to evaluate the Decision Tree Model for trees up to 2 levels deep (that is, the maximum path length from the root to the leaves is

More information

Decision Tree And Random Forest

Decision Tree And Random Forest Decision Tree And Random Forest Dr. Ammar Mohammed Associate Professor of Computer Science ISSR, Cairo University PhD of CS ( Uni. Koblenz-Landau, Germany) Spring 2019 Contact: mailto: Ammar@cu.edu.eg

More information

Data Mining. Preamble: Control Application. Industrial Researcher s Approach. Practitioner s Approach. Example. Example. Goal: Maintain T ~Td

Data Mining. Preamble: Control Application. Industrial Researcher s Approach. Practitioner s Approach. Example. Example. Goal: Maintain T ~Td Data Mining Andrew Kusiak 2139 Seamans Center Iowa City, Iowa 52242-1527 Preamble: Control Application Goal: Maintain T ~Td Tel: 319-335 5934 Fax: 319-335 5669 andrew-kusiak@uiowa.edu http://www.icaen.uiowa.edu/~ankusiak

More information

Learning from Observations. Chapter 18, Sections 1 3 1

Learning from Observations. Chapter 18, Sections 1 3 1 Learning from Observations Chapter 18, Sections 1 3 Chapter 18, Sections 1 3 1 Outline Learning agents Inductive learning Decision tree learning Measuring learning performance Chapter 18, Sections 1 3

More information

The Quadratic Entropy Approach to Implement the Id3 Decision Tree Algorithm

The Quadratic Entropy Approach to Implement the Id3 Decision Tree Algorithm Journal of Computer Science and Information Technology December 2018, Vol. 6, No. 2, pp. 23-29 ISSN: 2334-2366 (Print), 2334-2374 (Online) Copyright The Author(s). All Rights Reserved. Published by American

More information