reset password
Author Message
aalva190
Posts: 64
Posted 21:20 Oct 29, 2018 |
PART E
Use KNN (with k=3), Decision Tree (with random_state=5), and Logistic Regression
Classifiers to predict Heart Disease based on the training/testing datasets that you built
in part (d). Then check, compare, and report the accuracy of these 3 classifiers. Which one
is the best? Which one is the worst?

////////////////////

I know that the email stated that Decision Tree has Random State of 5 but, should I also put that for Logistic Regression?
The question above says "Decision Tree (with random_state=5), and Logistic Regression Classifiers to predict Heart Disease"

but its 'random state  = 5 for Decision Tree and random state  = 5 for Logistic Regression' or 'random state  = 5 for Decision Tree and  Logistic Regression (no state'.

 

mpourhoma
Posts: 39
Posted 21:28 Oct 29, 2018 |

Part E)

Logistic Regression does NOT need a Random_state for this problem.

But, You have to use random_state=5 for DecisionTree when you initialize it as:

my_decisiontree = DecisionTreeClassifier(random_state=5)

aalva190
Posts: 64
Posted 21:29 Oct 29, 2018 |

Got it, thanks!