Question: please help on this , am getting an syntax error - clfs = [ ] for ccp _ alpha in ccp _ alphas: clf =
please help on this am getting an syntax error clfs
for ccpalpha in ccpalphas:
clf DecisionTreeClassifier
randomstate ccpalphaccpalpha, classweight"balanced"
clffitXtrain, ytrain
clfsappendclf
print
"Number of nodes in the last tree is: with ccpalpha: format
clfstreenodecount, ccpalphas
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
