Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose you have trained a decision tree model called ' dt ' in Python using sklearn.tree.DecisionTreeClassifier. Which of the following codes CAN be used to
Suppose you have trained a decision tree model called dt in Python using sklearn.tree.DecisionTreeClassifier. Which of the following codes CAN be used to generate the testing accuracy of the decision tree dt The testing dataset features is X test', and the true testing label is
Ytest'.
a from sklearn.metrics import accuracyscore
accuracyscoreytest, Xtest
b dtscoreXtest
c from sklearn.metrics import accuracyscore accuracyscorelytest, dtpredictXtest
d dtaccuracyXtest, ytest
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started