Decision Tree is a very popular machine learning algorithm. Decision Tree solves the problem of machine learning by transforming the data into a tree representation. Each internal node of the tree representation denotes an attribute and each leaf node denotes a class label.
A decision tree algorithm can be used to solve both regression and classification problems.
Latest news about AI and ML such as ChatGPT vs Google Bard
Time Complexity of Code with Python Example
Space Complexity of Code with Python Example
Advantages:
- Compared to other algorithms decision trees requires less effort for data preparation during pre-processing.
- A decision tree does not require normalization of data.
- A decision tree does not require scaling of data as well.
- Missing values in the data also do NOT affect the process of building a decision tree to any considerable extent.
- A Decision tree model is very intuitive and easy to explain to technical teams as well as stakeholders.
Disadvantage:
- A small change in the data can cause a large change in the structure of the decision tree causing instability.
- For a Decision tree sometimes calculation can go far more complex compared to other algorithms.
- Decision tree often involves higher time to train the model.
- Decision tree training is relatively expensive as the complexity and time has taken are more.
- The Decision Tree algorithm is inadequate for applying regression and predicting continuous values.
You may like to watch a video on the Top 5 Decision Tree Algorithm Advantages and Disadvantages
You may like to watch a video on Top 10 Highest Paying Technologies To Learn In 2021
You may like to watch a video on Gradient Descent from Scratch in Python
Additionally, you may like to watch how to implement Linear Regression from Scratch in python without using sklearn
End Notes:
I hope you liked this article.
Cheers !!