Random Forest
← Question BankSign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark Sign in to bookmark
Machine Learning
Tree Based Methods in Machine Learning
Interview questions on Tree Based Methods in Machine Learning.
17 questions
Sign in to bookmark
Random Forest
Q2. The algorithm depicted in Fig. 6.1 was found in an old book about ensembling. Name the
algorithm.
Algorithm 1: Algo 1
Data: A set of training data, Q with N elements has been established while K times do Create a random subset of N ′ data by sampling from Q containing the N samples; N′ < N; Execute algorithm Algo 2; Return all N′ back to Q
Algorithm 2: Algo 2
Choose a learner ; while K times do Pick a training set and train with ;
Random Forest
Q3. What is a Random Forest, and how does it work?
Random Forest
Q4. How do you choose between different types of decision tree algorithms (e.g., CART, ID3, C4.5, Random Forest)?
Random Forest
Q5. What is the difference between a decision tree and a Random Forest?
Random Forest
Q6. Why is it called a "Random" Forest?
Random Forest
Q7. What is the purpose of feature bagging in a Random Forest?
Random Forest
Q8. How does a Random Forest handle missing data?
Random Forest
Q9. What are the advantages of using Random Forests?
Random Forest
Q10. What is out-of-bag error, and how is it used in Random Forests?
Random Forest
Q11. What is the issue with Gini impurity?
Random Forest
Q12. Can you explain the concept of feature importance in a Random Forest?
Random Forest
Q13. What are some potential drawbacks of using Random Forests?
Random Forest
Q14. When would you choose a Random Forest over other machine learning algorithms?
Random Forest
Q15. Consider training corpus consisting of balls which are glued together as triangles, each
of which has either .
- We draw several samples from this corpus as presented in Fig.6.3 where in each sample is equiprobable. What type of sampling approach is being utilized here?
- Two samples are drawn one after the other. In which of the following cases is the covariance between the two samples equals zero? - (i) Sampling without replacement - (ii) Sampling with replacement
- During training, the corpus sampled with replacement and is divided into several folds as presented in Fig. 6.4.
Random Forest
Q16. There are several methods by which the outputs of base classifiers can be combined to yield a single prediction. Below code snippet depicts part of a specific ensembling approach applied to several CNN model predictions for a labelled data-set. Which approach is being utilized?
- Majority voting for binary classification
- Weighted majority voting for binary classification
- Majority voting for class probabilities (iv) Weighted majority class probabilities
- An algebraic weighted average for class probabilities
- An adaptive weighted majority voting for combining multiple classifiers
l=[]
for i,f in enumerate(filelist):
temp = pd.read_csv(f)
l.append(temp)
arr = np.stack(l,axis=-1)
avg_results = pd.DataFrame(arr[:,:-1,:].mean(axis=2))
avg_results['image'] = l[0]['image']
avg_results.columns = l[0].columns
Random Forest