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

Size: px
Start display at page:

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

Transcription

1 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

2 Induction of decision trees : outline (adapted from Tom Mitchell s Machine Learning book and Hendrik Blockeel s lecture, KULeuven, Belgium) What are decision trees? How can they be induced automatically? top-down induction of decision trees avoiding overfitting converting trees to rules alternative heuristics a generic TDIDT algorithm 2

3 What are decision trees? Cf. guessing a person using only yes/no questions: ask some question depending on answer, ask a new question continue until answer known A decision tree Tells you which question to ask, depending on outcome of previous questions Gives you the answer in the end Usually not used for guessing an individual, but for predicting some property (e.g., classification) 3

4 Example decision tree 1 Mitchell s example: Play tennis or not? (depending on weather conditions) Outlook Sunny Overcast Rainy Humidity Yes Wind Strong High Weak Normal No Yes No Yes 4

5 Example decision tree 2 tree for predicting whether C-section necessary Leaves are not pure here; ratio pos/neg is given 1 Previous_Csection Fetal_Presentation 0 1 [3+, 29-] Primiparous + [55+, 35-] [8+, 22-]

6 Representation power Typically: examples represented by array of attributes 1 node in tree tests value of 1 attribute 1 child node for each possible outcome of test Leaf nodes assign classification Note: tree can represent any Boolean function - i.e., also disjunctive concepts (<-> VS: conjunctive concepts) tree can allow noise (non-pure leaves) 6

7 Representing boolean formulae E.g., A B true A false true B Exercises: 1. A B 2. ( A B) (A B) 3. (A B) (C D E) true true false false 7

8 Exercise (Decision Trees and Generality) True or false? If a Boolean decision tree D2 is an elaboration of D1 ( elaboration meaning that a leaf of D1 has been changed into a sub-tree in D2) then D1 is more general than D2. 8

9 Classification, Regression and Clustering trees Classification trees represent function X -> C with C discrete (like the decision trees we just saw) Hence, can be used for concept learning Regression trees predict numbers in leaves could use a constant (e.g., mean), or linear regression model, or Clustering trees just group examples in leaves Most (but not all) decision tree research in machine learning focuses on classification trees 9

10 Example decision tree 3 (from study of river water quality) "Data mining" application Given: descriptions of river water samples biological description: occurrence of organisms in water ( abundance, graded 0-5) chemical description: 16 variables (temperature, concentrations of chemicals (NH 4,...)) Question: characterize chemical properties of water using organisms that occur 10

11 Clustering tree yes T = ph = cond = O2 = O2sat = CO2 = hard = NO2 = NO3 = NH4 = PO4 = Cl = SiO2 = KMnO4 = K2Cr2O7 = BOD = abundance(tubifex sp.,5)? T = ph = cond = O2 = O2sat = CO2 = hard = NO2 = NO3 = NH4 = PO4 = Cl = SiO2 = KMnO4 = K2Cr2O7 = BOD = no abundance(sphaerotilus natans,5)? yes no abundance(...) <- "standardized" values (how many standard deviations above mean) 11

12 Inducing Decision Trees... In general, we like decision trees that give us a result after as few questions as possible We can construct such a tree manually, or we can try to obtain it automatically (inductively) from a set of data The latter is what this chapter is about Outlook Temp. Hum. Wind Play? Sunny False no Sunny True no Overcast False yes Outlook Humidity Yes High Sunny Overcast Rainy Normal Wind Strong Weak No Yes No Yes 12

13 Top-Down Induction of Decision Trees Basic algorithm for TDIDT: (later more formal version) start with full data set find test that partitions examples as good as possible - good = examples with same class, or otherwise similar examples, should be put together for each outcome of test, create child node move examples to children according to outcome of test repeat procedure for each child that is not pure Main questions: how to decide which test is best when to stop the procedure 13

14 Example problem? Is this drink going to make us ill, or not? 14

15 Data set: 8 classified instances 15

16 Obs 1: Shape is important SHAPE 16

17 Obs 2: for some glasses, colour is important SHAPE COLOUR 17

18 The decision tree SHAPE Non-orange COLOUR orange? 18

19 A DT creates a decision surface

20 Exercise : (Decision Surface) Consider a data set with two numeric attributes a1 and a2 and one nominal target attribute c with two possible values: + and The training examples are shown in the Figure < 1. Find a decision tree that classifies all training examples correctly. 2. Draw the decision surface of this tree on the Figure 20

21 Finding the best test (for classification trees) For classification trees: find test for which children are as pure as possible Purity measure borrowed from information theory: entropy is a measure of missing information ; more precisely, number of bits needed to represent the missing information, on average, using optimal encoding Given set S with instances belonging to class i with probability p i : Entropy(S) = - Σ i p i log 2 p i 21

22 Entropy For 2 classes if x = proportion of instances of class 1 in a given node e Entropy (e) = - x log 2 (x) (1-x) log 2 (1-x) Entropy in function of p (proportion of examples from class 1), for 2 classes: Entropy max when the 2 classes are not well separated 22

23 Information gain Heuristic for choosing a test in a node: test that on average provides most information about the class test that, on average, reduces class entropy most - on average: class entropy reduction differs according to outcome of test expected reduction of entropy = information gain Gain(S,A) = Entropy(S) - Σ v ( S v / S ) Entropy(S v ) S = set of instances in a given node A S v / S = proportion of instances of S which go in the v st child of A 23

24 Other purity measure/gain Gini coefficient : a measure of statistical dispersion (a low coefficient means a more equal distribution) Gini (S) = 1- Σ i p i2 = 2 Σ i<j p i p j Gain(S,A) = Gini(S) - Σ v ( S v / S ) Gini(S v ) 24

25 Exercise Assume S has 9 + and 5 - examples; partition (with entropy) according to Wind or Humidity attribute High S: [9+,5-] S: [9+,5-] E = E = Humidity Wind Normal Strong Weak S: [3+,4-] S: [6+,1-] S: [6+,2-] S: [3+,3-] E = E = E = E = Which attribute gives the best gain? 25

26 Example Assume Outlook was chosen: continue partitioning using info gain in child nodes [9+,5-] Outlook Sunny Overcast Rainy? Yes? [2+,3-] [4+,0-] [3+,2-] 27

27 Exercise (entropy, info gain) Consider the following table of training examples: 1. What is the entropy with respect to the classification attribute? 2. What is the information gain of a2 relative to these training examples? 28

28 Hypothesis space search in TDIDT Hypothesis space H = set of all trees H is searched in a hill-climbing fashion, from simple to complex... 29

29 Inductive bias in TDIDT Note: for e.g. boolean attributes, H is complete: each concept can be represented! given n attributes, we can keep on adding tests until all attributes tested So what about inductive bias? Clearly no restriction bias (H 2 U ) as for version spaces (conjunctive concepts) Preference bias: some hypotheses in H are preferred over others In this case: preference for short trees with informative attributes at the top 30

30 Occam s Razor Preference for simple models over complex models is quite generally used in machine learning Similar principle in science: Occam s Razor roughly: do not make things more complicated than necessary Reasoning, in the case of decision trees: more complex trees have higher probability of overfitting the data set Why? Somewhat controversial, see later 31

31 Avoiding Overfitting Phenomenon of overfitting: keep improving a model, making it better and better on training set by making it more complicated increases risk of modeling noise and coincidences in the data set may actually harm predictive power of theory on unseen cases Cf. fitting a curve with too many parameters

32 Overfitting: example area with probably wrong predictions 33

33 Overfitting: effect on predictive accuracy Typical phenomenon when overfitting: training accuracy keeps increasing accuracy on unseen validation set starts decreasing accuracy accuracy on training data accuracy on unseen data overfitting starts about here size of tree 34

34 How to avoid overfitting when building classification trees? Option 1: stop adding nodes to tree when overfitting starts occurring need stopping criterion Option 2: don t bother about overfitting when growing the tree after the tree has been built, start pruning it again 35

35 Stopping criteria How do we know when overfitting starts? 1. use a validation set: data not considered for choosing the best test - when accuracy goes down on validation set: stop adding nodes to this branch 2. use some statistical test - significance test: is the change in class distribution significant? (χ 2 - test) [in other words: does the test yield a clearly better situation?] - MDL: minimal description length principle entirely correct theory = tree + corrections for specific misclassifications minimize size(theory) = size(tree) + size(misclassifications(tree)) Cf. Occam s razor 36

36 Post-pruning trees After learning the tree: start pruning branches away For all nodes in tree: - Estimate effect of pruning tree at this node on predictive accuracy e.g. using accuracy on validation set Prune node that gives greatest improvement Continue until no improvements Note : this pruning constitutes a second search in the hypothesis space 37

37 Effect of pruning accuracy accuracy on training data effect of pruning accuracy on unseen data size of tree 38

38 Comparison Advantage of Option 1: no superfluous work But: tests may be misleading E.g., validation accuracy may go down briefly, then go up again Therefore, Option 2 (post-pruning) is usually preferred (though more work) 39

39 Turning trees into rules From a tree a rule set can be derived Path from root to leaf in a tree = 1 if-then rule Advantage of such rule sets may increase comprehensibility - Disjunctive concept definition can be pruned more flexibly - in 1 rule, 1 single condition can be removed vs. tree: when removing a node, the whole subtree is removed - 1 rule can be removed entirely 40

40 Rules from trees: example Outlook Sunny Overcast Rainy Humidity Yes Wind Strong High Weak Normal No Yes No Yes if Outlook = Sunny and Humidity = High then No if Outlook = Sunny and Humidity = Normal then Yes 41

41 Pruning rules : possible method 1. convert tree to rules 2. prune each rule independently remove conditions that do not harm accuracy of rule 3. sort rules (e.g., most accurate rule first) before pruning: each example covered by 1 rule after pruning, 1 example might be covered by multiple rules therefore some rules might contradict each other therefore sorting is important 42

42 Pruning rules: example true true A false B Tree representing A B true true false false if A=true then true if A=false and B=true then true if A=false and B=false then false Rules represent A ( A B) A B 43

43 Handling missing values What if result of test is unknown for example? e.g. because value of attribute unknown Some possible solutions, when training: guess value: just take most common value (among all examples, among examples in this node / class, ) assign example partially to different branches - e.g. counts for 0.7 in yes subtree, 0.3 in no subtree When using tree for prediction: assign example partially to different branches combine predictions of different branches 44

44 Alternative heuristics for choosing tests Attributes with continuous domains (numbers) cannot have different branch for each possible outcome allow, e.g., binary test of the form Temperature < 20 same evaluation as before, but need to generate value (e.g. 20) - For instance, just try all reasonable values Attributes with many discrete values unfair advantage over attributes with few values - cf. question with many possible answers is more informative than yes/no question To compensate: divide gain by max. potential gain SI Gain Ratio: GR(S,A) = Gain(S,A) / SI(S,A) - Split-information SI(S,A) = - S v / S log 2 Sv / S - with v ranging over different results of test A 45

45 Continuous Valued Attributes Create a discrete attribute to test continuous Temperature = C (Temperature > C) = {true, false} Where to set the threshold? Temperature 15 0 C 18 0 C 19 0 C 22 0 C 24 0 C 27 0 C PlayTennis No No Yes Yes Yes No 46

46 Handling costs Tests may have different costs e.g. medical diagnosis: blood test, visual examination, have different costs try to find tree with low expected cost, instead of low expected number of tests alternative heuristics, taking cost into account, have been proposed e.g: - replace gain by: Gain 2 (S,A)/Cost(A) [Tan, Schimmer 1990] - 2 Gain(S,A) -1/(Cost(A)+1)w w [0,1] [Nunez 1988] 47

47 Properties of good heuristics Many alternatives exist ID3/C4.5 use information gain or gain ratio CART uses Gini criterion Q: Why not simply use accuracy (% of correct predictions of tree, if leaves predict their majority class) as a criterion? 80-, 20+ A1 40-,0+ 40-, , 20+ A2 40-, ,10+ How would - accuracy - information gain rate these splits? 48

48 Heuristics compared 1 0,9 0,8 0,7 0,6 0,5 0,4 0,3 0,2 0, ,2 0,4 0,6 0,8 1 p Accuracy Entropy Gini Curves show impurity as a function of p (proportion of positive), when using Accuracy, Entropy, Gini Good impurity measures are strictly concave 49

49 Why concave functions? Gain E 1 E E 2 (n 1 /n)e 1 +(n 2 /n)e 2 p 1 p p 2 Assume node with size n, entropy E and proportion of positives p is split into 2 nodes with n 1, E 1, p 1 and n 2, E 2 p 2. We have p = (n 1 /n)p 1 + (n 2 /n) p 2 and the new average entropy E = (n 1 /n)e 1 +(n 2 /n)e 2 is therefore found by linear interpolation between (p 1,E 1 ) and (p 2,E 2 ) at p. Gain = difference in height between (p, E) and (p,e ). 50

50 Generic TDIDT algorithm Many different algorithms for top-down induction of decision trees exist What do they have in common, and where do they differ? We look at a generic algorithm General framework for TDIDT algorithms Several parameter procedures - instantiating them yields a specific algorithm Summarizes previously discussed points and puts them into perspective 51

51 Generic TDIDT algorithm function TDIDT(E: set of examples) returns tree; T' := grow_tree(e); T := prune(t'); return T; function grow_tree(e: set of examples) returns tree; T := generate_tests(e); t := best_test(t, E); P := partition induced on E by t; if stop_criterion(e, P) then return leaf(info(e)) else for all E j in P: t j := grow_tree(e j ); return node(t, {( j, t j )}); j 52

52 For classification... prune: e.g. reduced-error pruning,... generate_tests : Attr=val, Attr<val,... for numeric attributes: generate val best_test : Gain, Gainratio,... stop_criterion : MDL, significance test (e.g. χ 2 - test),... Info (how do we label the node?) : most frequent class ("mode") Popular systems: C4.5 (Quinlan 1993), C5.0 ( 53

53 Simple algorithm : ID3 (no pruning, 2 classes) ID3 (Examples, Target_Attribute, Attributes) Create a root node for the tree If all examples are positive, Return the single-node tree Root, with label = +. If all examples are negative, Return the single-node tree Root, with label = -. If number of predicting attributes is empty, Return the single node tree Root, with label = most common value of the target attribute in the examples. Otherwise Begin A = The Attribute that best classifies examples. Decision Tree attribute for Root = A. For each possible value, vi, of A : - Add a new tree branch below Root, corresponding to the test A = vi. - Let Examples(vi), be the subset of examples that have the value vi for A IF Examples(vi) is empty Then below this new branch add a leaf node with label = most common target value in the examples Else below this new branch add the subtree ID3 (Examples(vi), Target_Attribute, Attributes {A}) End Return Root 54

54 Exercise : ID3 1. Show a decision tree that could be learned by ID3 assuming it gets the following examples : 2. Add this example: then show how ID3 would induce a decision tree for these 5 examples. 55

55 Reduced-error pruning (1/2) IDEA : Prune a tree at a node A if the (weighted) sum of the error of the child node C v of A > error of A Weight = proportion of instances in a given node compared to total number of instances Don t use only error but error within a confidence interval The proportion p (X/n) follows a normal distribution (= Gaussian ) with a mean µ = p = f n and a standard deviation σ = ((p(1-p)/n) 1/2 (σ 2 : variance) u : confidence level or confidence coefficient (quantile ~cumulative distribution function). 56

56 Example : confidence interval Toss a coin 10 times : 3 heads, 7 tails, is there a pb with the coin? (not 5/5???) Probability to give the wrong answer < 5%, u = 1.96 f n = p = ½ n = 10 Compute IC. If 3/10 and 7/10 are within IC, the coin is ok 57

57 Reduce error pruning (2/2) To compare the error (proportion of wrongly classified instances) of the child node and the error of the father node, we only use the upper bound of the confidence interval weight 58

58 Exercise Should we prune A? (u = 1.96) (10+,3-) A B (9+,1-) (1+,2-) C 59

59 For regression... change best_test: e.g. minimize average variance info: mean stop_criterion: significance test (e.g., F-test) {1,3,4,7,8,12} {1,3,4,7,8,12} A1 A2 {1,4,12} {3,7,8} {1,3,7} {4,8,12} 60

60 Exercise : regression tree Consider the following set S of training examples (with a numeric target attribute). Compute the heuristic value (weighted average variance of the subsets: H(A) = Σ v Values(A) ( ( Sv / S ) *Var[Sv] )) for each attribute A. NB variance : Var[Sv] = i [Sv pi(xi-µ) 2 (µ :mean, pi: proportion of example i in Sv, xi : value of the target variable for example i ) Which attribute (a1 or a2) will be put in the top node of the regression tree? 61

61 CART Binary classification and regression trees [Breiman et al., 1984] Classification: info: mode, best_test: Gini Regression: info: mean, best_test: variance prune: cost-complexity" pruning penalty α for each node the higher α, the smaller the tree will be optimal α obtained empirically (cross-validation) 62

62 Pruning in CART (details) CART determines a pruning sequence t 0, t 1,., t p : the exact order in which each node should be removed sequence determined from the originally learned tree (t0) all the way back to root node tp The "weakest link" is pruned away (= the nodes that add least to overall accuracy of the tree) contribution to overall tree : a function of both accuracy (on training set) and size of node accuracy gain is weighted by the size of the considered sample small nodes tend to get removed before large ones If several nodes have the same contribution they are all pruned away simultaneously more than two terminal nodes could be cut off in one pruning The sequence is determined all the way back to root node if target variable is unpredictable we will want to prune back to root... the no model solution 63

63 CART pruning : evaluate a tree Once the sequence is computed, for each tree in the sequence, evaluate the tree : Take a test data set and drop it down the largest tree in the sequence and measure its predictive accuracy - how many cases right and how many wrong - measure accuracy overall and by class CART procedure requires test data (validation set) to guide tree evaluation 64

64 CART : pruning sequence example 24 Terminal Nodes 21 Terminal Nodes 20 Terminal Nodes 18 Terminal Nodes 65

65 n-dimensional target spaces Instead of predicting 1 number, predict vector of numbers info: mean vector best_test: variance (mean squared distance) in n- dimensional space stop_criterion: F-test mixed vectors (numbers and symbols)? use appropriate distance measure -> "clustering trees" 66

66 Clustering tree yes T = ph = cond = O2 = O2sat = CO2 = hard = NO2 = NO3 = NH4 = PO4 = Cl = SiO2 = KMnO4 = K2Cr2O7 = BOD = abundance(tubifex sp.,5)? T = ph = cond = O2 = O2sat = CO2 = hard = NO2 = NO3 = NH4 = PO4 = Cl = SiO2 = KMnO4 = K2Cr2O7 = BOD = no abundance(sphaerotilus natans,5)? yes no abundance(...) <- "standardized" values (how many standard deviations above mean) 67

67 Model trees Make predictions using linear regression models in the leaves info: regression model (y=ax 1 +bx 2 +c) best_test:? variance: simple, not so good (M5 approach) residual variance after model construction: better, computationally expensive (RETIS approach) stop_criterion: significant reduction of variance A 68

68 Pluses of Decision Trees Easy to generate; simple algorithm Easy to read small trees; can be converted to simple rules Highly expressive Fast and easy to construct Good performance on many tasks A wide variety of problems can be recast as classification problems 69

69 Minuses of Decision Trees Not always sufficient to learn complex concepts Can be hard to understand if the trees are large Some problems with continuously-valued attributes or classes may not be easily discretized Methods for handling missing attribute values are somewhat clumsy 70

70 Try it out... Weka toolbox By the University of Waikato Contains many machine learning algorithms - Including several TDIDT algorithms: ID3, J48, M5,... Contains toy data sets (incl. play-tennis example) Easy-to-use interface See 71

71 To Remember Decision trees & their representational power Generic TDIDT algorithm and how to instantiate its parameters Search through hypothesis space, tree to rule conversion For classification trees: details on heuristics, handling missing values, pruning, Some general concepts: overfitting, Occam s razor 72

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

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-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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Typical Supervised Learning Problem Setting

Typical Supervised Learning Problem Setting Typical Supervised Learning Problem Setting Given a set (database) of observations Each observation (x1,, xn, y) Xi are input variables Y is a particular output Build a model to predict y = f(x1,, xn)

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

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

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

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 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

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

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

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

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

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

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

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

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

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

Introduction Association Rule Mining Decision Trees Summary. SMLO12: Data Mining. Statistical Machine Learning Overview.

Introduction Association Rule Mining Decision Trees Summary. SMLO12: Data Mining. Statistical Machine Learning Overview. SMLO12: Data Mining Statistical Machine Learning Overview Douglas Aberdeen Canberra Node, RSISE Building Australian National University 4th November 2004 Outline 1 Introduction 2 Association Rule Mining

More information

Lecture 24: Other (Non-linear) Classifiers: Decision Tree Learning, Boosting, and Support Vector Classification Instructor: Prof. Ganesh Ramakrishnan

Lecture 24: Other (Non-linear) Classifiers: Decision Tree Learning, Boosting, and Support Vector Classification Instructor: Prof. Ganesh Ramakrishnan Lecture 24: Other (Non-linear) Classifiers: Decision Tree Learning, Boosting, and Support Vector Classification Instructor: Prof Ganesh Ramakrishnan October 20, 2016 1 / 25 Decision Trees: Cascade of step

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

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

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

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

CS145: INTRODUCTION TO DATA MINING

CS145: INTRODUCTION TO DATA MINING CS145: INTRODUCTION TO DATA MINING 4: Vector Data: Decision Tree Instructor: Yizhou Sun yzsun@cs.ucla.edu October 10, 2017 Methods to Learn Vector Data Set Data Sequence Data Text Data Classification Clustering

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

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

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

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

Information Theory & Decision Trees

Information Theory & Decision Trees Information Theory & Decision Trees Jihoon ang Sogang University Email: yangjh@sogang.ac.kr Decision tree classifiers Decision tree representation for modeling dependencies among input variables using

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

Classification Using Decision Trees

Classification Using Decision Trees Classification Using Decision Trees 1. Introduction Data mining term is mainly used for the specific set of six activities namely Classification, Estimation, Prediction, Affinity grouping or Association

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

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

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

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

Machine Learning 2010

Machine Learning 2010 Machine Learning 2010 Decision Trees Email: mrichter@ucalgary.ca -- 1 - Part 1 General -- 2 - Representation with Decision Trees (1) Examples are attribute-value vectors Representation of concepts by labeled

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

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 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

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

Symbolic methods in TC: Decision Trees

Symbolic methods in TC: Decision Trees Symbolic methods in TC: Decision Trees ML for NLP Lecturer: Kevin Koidl Assist. Lecturer Alfredo Maldonado https://www.cs.tcd.ie/kevin.koidl/cs0/ kevin.koidl@scss.tcd.ie, maldonaa@tcd.ie 01-017 A symbolic

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 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

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

Artificial Intelligence. Topic

Artificial Intelligence. Topic Artificial Intelligence Topic What is decision tree? A tree where each branching node represents a choice between two or more alternatives, with every branching node being part of a path to a leaf node

More information

Introduction to Machine Learning CMU-10701

Introduction to Machine Learning CMU-10701 Introduction to Machine Learning CMU-10701 23. Decision Trees Barnabás Póczos Contents Decision Trees: Definition + Motivation Algorithm for Learning Decision Trees Entropy, Mutual Information, Information

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

Data Mining Classification: Basic Concepts and Techniques. Lecture Notes for Chapter 3. Introduction to Data Mining, 2nd Edition

Data Mining Classification: Basic Concepts and Techniques. Lecture Notes for Chapter 3. Introduction to Data Mining, 2nd Edition Data Mining Classification: Basic Concepts and Techniques Lecture Notes for Chapter 3 by Tan, Steinbach, Karpatne, Kumar 1 Classification: Definition Given a collection of records (training set ) Each

More information

Rule Generation using Decision Trees

Rule Generation using Decision Trees Rule Generation using Decision Trees Dr. Rajni Jain 1. Introduction A DT is a classification scheme which generates a tree and a set of rules, representing the model of different classes, from a given

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

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

CSCI 5622 Machine Learning

CSCI 5622 Machine Learning CSCI 5622 Machine Learning DATE READ DUE Mon, Aug 31 1, 2 & 3 Wed, Sept 2 3 & 5 Wed, Sept 9 TBA Prelim Proposal www.rodneynielsen.com/teaching/csci5622f09/ Instructor: Rodney Nielsen Assistant Professor

More information

Classification II: Decision Trees and SVMs

Classification II: Decision Trees and SVMs Classification II: Decision Trees and SVMs Digging into Data: Jordan Boyd-Graber February 25, 2013 Slides adapted from Tom Mitchell, Eric Xing, and Lauren Hannah Digging into Data: Jordan Boyd-Graber ()

More information

Learning from Observations

Learning from Observations RN, Chapter 18 18.3 Learning from Observations Learning Decision Trees Framework Classification Learning Bias Def'n: Decision Trees Algorithm for Learning Decision Trees Entropy, Inductive Bias (Occam's

More information

UVA CS 4501: Machine Learning

UVA CS 4501: Machine Learning UVA CS 4501: Machine Learning Lecture 21: Decision Tree / Random Forest / Ensemble Dr. Yanjun Qi University of Virginia Department of Computer Science Where are we? è Five major sections of this course

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

Data Mining Classification: Basic Concepts, Decision Trees, and Model Evaluation

Data Mining Classification: Basic Concepts, Decision Trees, and Model Evaluation Data Mining Classification: Basic Concepts, Decision Trees, and Model Evaluation Lecture Notes for Chapter 4 Part I Introduction to Data Mining by Tan, Steinbach, Kumar Adapted by Qiang Yang (2010) Tan,Steinbach,

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

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

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

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

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

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

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

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

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

Decision Trees. Machine Learning 10701/15781 Carlos Guestrin Carnegie Mellon University. February 5 th, Carlos Guestrin 1

Decision Trees. Machine Learning 10701/15781 Carlos Guestrin Carnegie Mellon University. February 5 th, Carlos Guestrin 1 Decision Trees Machine Learning 10701/15781 Carlos Guestrin Carnegie Mellon University February 5 th, 2007 2005-2007 Carlos Guestrin 1 Linear separability A dataset is linearly separable iff 9 a separating

More information

Inductive Learning. Chapter 18. Why Learn?

Inductive Learning. Chapter 18. Why Learn? Inductive Learning Chapter 18 Material adopted from Yun Peng, Chuck Dyer, Gregory Piatetsky-Shapiro & Gary Parker Why Learn? Understand and improve efficiency of human learning Use to improve methods for

More information

Review of Lecture 1. Across records. Within records. Classification, Clustering, Outlier detection. Associations

Review of Lecture 1. Across records. Within records. Classification, Clustering, Outlier detection. Associations Review of Lecture 1 This course is about finding novel actionable patterns in data. We can divide data mining algorithms (and the patterns they find) into five groups Across records Classification, Clustering,

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

Decision Support. Dr. Johan Hagelbäck.

Decision Support. Dr. Johan Hagelbäck. Decision Support Dr. Johan Hagelbäck johan.hagelback@lnu.se http://aiguy.org Decision Support One of the earliest AI problems was decision support The first solution to this problem was expert systems

More information

The Naïve Bayes Classifier. Machine Learning Fall 2017

The Naïve Bayes Classifier. Machine Learning Fall 2017 The Naïve Bayes Classifier Machine Learning Fall 2017 1 Today s lecture The naïve Bayes Classifier Learning the naïve Bayes Classifier Practical concerns 2 Today s lecture The naïve Bayes Classifier Learning

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

Machine Learning and Data Mining. Decision Trees. Prof. Alexander Ihler

Machine Learning and Data Mining. Decision Trees. Prof. Alexander Ihler + Machine Learning and Data Mining Decision Trees Prof. Alexander Ihler Decision trees Func-onal form f(x;µ): nested if-then-else statements Discrete features: fully expressive (any func-on) Structure:

More information