




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





What are decision trees? - ANSWERmachine learning algorithm used for classification and regression. It learns by asking a series of "if-else" questions in specific order. Structure of nodes, edges, and leaves that can be used to represent data. Nodes represent attributes edges represent values leaves represent outputs What is the algorithm for decision tree - ANSWER1. pick the best attribute ( that splits data in half) - if the attribute no valuable information it might be due to overfitting
What is the ID3 Algorithm - ANSWER- ID3 builds the decision tree using a top- down greedy approach greedy - because it will decide which attribute should be at the root by just looking at the next move. Doesn't not look at the entire input space Maximizes information gain (minimizing entropy) Algo:
What should you do to prevent overfitting - ANSWER- use cross validation and pruning What is pruning - ANSWERmeans to remove sections of the tree that provide litter to no information What if it's a regression problem - ANSWERinformation gain woun't be sufficient, we can can measure variance instead. Which is the deviation of a variable from its mean value The leaf of outputs should be - ANSWERmean or average Decision tree complexity - ANSWERrun time to construct a balance binary tree is O(mnlogn) n is samples m is features Query time is - ANSWERO(log n) n number of samples What are some the advantages of using DT - ANSWER- simple to understand and interpret
Limitations of DTs - ANSWER- can create over-complex trees that don't generalize well (overfitting) --- can be reduced by pruning or setting minimum numbers of samples required at a leaf node or setting maximum tree depth
Given infinite training data over a Boolean atttributes, we can always learn the target concept using a decision tree - ANSWERTrue a tree with depth n can represent any boolean function perfectly Reduced error pruning decreases - ANSWERthe number of nodes(namlely parameters) in the decision tree and thus yields simple models having higher bias and lower variance Entropy is not better than Gini Impurity or the other way around. Explain - ANSWEROne algorithm is not better than the other at generalizing accuracy. You have to test it and see, it all depends on your dataset. No free lunch theorem states that no algorithm/impurity will dominate all others Decision trees prefer correct trees with fewer nodes and therefore making it simpler - ANSWERtrue