Decision Trees - Pt.2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/36

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:55 AM on 10/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

37 Terms

1
New cards

Stopping Criteria

  • Building decision trees is a recursive algorithm

  • The initial split produces children


2
New cards

Why does tree building stop?

  • The number of records per node reaches some pre-set limit

  • The depth of the tree reaches some pre-set limit

  • No split can be found that increases the PURITY of any node’s CHILDREN


3
New cards

Partitioning the Data

  • When a model is developed on training data, it can overfit the training data

  • Some methods use the test data to choose parameters

  • Final selected model is applied to a holdout partition (unseen data) that gives an unbiased estimate of its performance on the new data


4
New cards

What does is partitioning data?

  • When a model is developed on training data, it can overfit the training data

  • Some methods use the test data to choose the parameters, or choose among alternative models


5
New cards

What is the solution for overfitting data?


The final selection is applied to a holdout partition → unseen data to give unbiased estimate of its performance on the new data

6
New cards

What data should you NEVER use during the Model traning phase?

NEVER use the test set

7
New cards

What is cross validation?

Repeated partitioning the data to evaluate a model’s performance across multiple runs

8
New cards

What is k-fold cross-validation?

A method that divides data into k folds and uses each fold once as validation data while the remaining folds are used as TRAINING data.

9
New cards

What happens during each run of k-fold cross-validation?

One fold is set aside as validation data, and the remaining k-1 folds are used as training data

10
New cards

Do validation folds overlap in k-fold cross-validation?

No the validation folds are non-overlapping

11
New cards

How is performance calculated in k-fold cross-validation?

Calculate the average performance across all k runs

12
New cards

What is a confusion matrix?

Actual values V.S. predictive values

13
New cards

What are the four outcomes in a confusion matrix?

True Positive (TP), True Negative(TN), False Positive (FP), False Negative (FN)

14
New cards

What is a True Positive?

The actual class is positive, and the model predicts positive

15
New cards

What is a True Negative?

The actual class is negative, and the model predicts negative

16
New cards

What is a False Positive?

The actual class is negative, but the model predicts positive

17
New cards

What is a False Negative?

The actual is positive, but the model predicts negative

18
New cards

How is accuracy(correctness) calculated?

(TP + TN)/ (TP+TN+FP+FN)

19
New cards

How is sensitivity calculated?

TP/(TP+FN)

20
New cards

How is specificity calculated?

TN/(FP+TN)

21
New cards

How do you calculate True Positive Rate?

TP Rate = TP / (TP+FN)

22
New cards

How do you calculate False Positive Rate?

FP/(FP+TN) = 1 - Specificity

23
New cards

Precision calculation

TP/(TP+FP)

24
New cards

Mis-Calculation Error Calculation

(FP+FN)/(FP+FN+TP+TN)

25
New cards

F_Measure Calculation

2*(Precision*Recall)/(Precision+Recall)

26
New cards

What is an ROC Curve?

Receiver Operating Characteristic(ROC) curve depicts the TP rate vs. FP rate

27
New cards

What does the area under the curve represent?

Close to 1 → the classifier performs the best

Close to 0.5 → classifier performs poor

Much less than 0.5 → Performs much worse than a random guess

28
New cards

What does the Y-axis represent on the ROC curve?

Rate of correctly identifying Positive cases among actual positive cases

TPR = TP/(TP+FN)

29
New cards

What does the X-axis represent on the ROC curve?

Rate of incorrectly classifying Negative cases among actual negative cases

FPR = FP/(FP+TN)

30
New cards

How can an algorithm be useful in the real-world?

  • Permit numeric attributes

  • Allow missing values

  • Be robust in the presence of noise


31
New cards

ID3

  • Accepts categorical values

  • Chooses split attribute with the highest information gain


32
New cards

Extending ID3

  • To permit numeric attributes

  • To deal with missing values

  • Stability for noisy data


33
New cards

End result of extending ID3

Best-known and probably widely-used learning algorithm

34
New cards

C4.5

  • Handling missing values

  • Accepts continuous values

  • Uses information gain ratio to decide the best split

  • Best-known and most widely-used learning algorithm


35
New cards

C5

  • Commercial successor of C4.5

  • C4.5 is open source; C5 is used in commercial packages


36
New cards

CART (Classification and Regression Tree)

  • Creates binary tree

  • Works well with numeric variables

  • Uses “Reduction Variance”

  • Prediction is computed as the average of numerical target variables

  • Performance measured by RMSE


37
New cards

What does RMSE stand for?

Root Mean Squared Error