Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

Compare logistic regression with decision tree along with a case study in Python

Asked by Varsha Chauhan Nov 5, 2019 1.8K views 2 answers
Share

Your answer

2 Answers

Valeria Latest answer

Answered on Jun 1, 2023

As anyone with a background in data analysis, this theme definitely caught my attention.


Looking at the code, it is extremely good to see the use of famous libraries like numpy, pandas, and scikit-learn. Importing the dataset and performing the necessary data splitting and scaling are essential steps in any machine learning project.

I see that logistic regression and decision tree classifiers are being trained on the dataset. It's always valuable to explore multiple algorithms and compare their performance. In this case, it's mentioned that decision trees outperformed logistic regression based on the confusion matrix evaluation. It would be interesting to dive deeper into the evaluation metrics and understand why decision trees yielded better results in this particular scenario.

Overall, it's fascinating to witness the power of Python in implementing machine learning models and conducting insightful analysis. I'm excited to further explore this topic and learn more about the nuances of logistic regression and decision trees in different contexts.

Was this helpful?

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.