Decision tree vs Naive Bayes classifier

0 votes
In which cases is it better to use a Decision tree and other cases a Naive Bayes classifier?Why use one of them in certain cases? And the other in different cases? (By looking at its functionality, not at the algorithm)
Feb 28, 2022 in Machine Learning by Dev
• 6,000 points
699 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Decision Trees are versatile, and can be used for both regression as well as classification problems.
Decision Trees are easy to interpret, simple to understand and even debugging is easy.
Decision Trees select relevant features from the data,thus the algorithm is trained on only the optimal and selective features. The result is that it gives good accuracy.
Decision Trees have a drawback that they overfit the data, and learn the data too well. The length of the tree grows in size based on the number of features and when the depth increases the tree tends to overfit the data.

Naive Bayes does not do feature selection like decision trees
Naive Bayes are probabilistic classifiers, they are good for predicting probabilities of various classes.
Generally used for text classification and multi-class classification.In robotics and computer vision, naive Bayes is widely employed.
Decision Trees can be used as a research tool to learn about the data.e.g. Choosing which product to manufacture, choice based decisions and other research based decisions can be handled with decision trees.

But Naive Bayes does not overfit the data, Thus no pruning is required; it is simple as compared to decision trees and also easier to interpret.
Decision Trees are used with large datasets while Naive Bayes works well with smaller data sets.
answered Feb 28, 2022 by Nandini
• 5,480 points

edited Mar 5

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

What is decision tree algorithm?

A decision tree is a map of ...READ MORE

answered May 13, 2019 in Machine Learning by Upadhya
2,681 views
0 votes
1 answer
0 votes
1 answer

Advantages of using decision tree?

These are the advantages of using a ...READ MORE

answered May 13, 2019 in Machine Learning by Mahima
4,303 views
0 votes
1 answer

Disadvantages of using decision tree?

Even though the decision tree algorithm has ...READ MORE

answered May 13, 2019 in Machine Learning by Jinu
4,863 views
0 votes
1 answer

Persisting data in sklearn

If you want to find some fixed ...READ MORE

answered Jul 10, 2019 in Python by SDeb
• 13,300 points
857 views
0 votes
1 answer
0 votes
1 answer

What is the difference between linear regression and logistic regression?

Hi Dev, to answer your question Linear Regression ...READ MORE

answered Feb 2, 2022 in Machine Learning by Nandini
• 5,480 points
1,274 views
0 votes
1 answer

Hierarchical clustering of 1 million objects

Consider switching the algorithm instead of using ...READ MORE

answered Feb 24, 2022 in Machine Learning by Nandini
• 5,480 points
627 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP