I'm trying to build a second dataframe in Jupyter Notebook to train a stronger model.
This is the line of code:
dtc2 = DecisionTreeClassifier(criterion = 'entropy', ccp_alpha=0.04)
I'm getting a type error:
TyperError: init() got an unexpected keyword arugment 'ccp_alpha'
Which is odd because ccp alpha should be a standard jupyter notebook keyword. Please let me know if you have any solutions! Thank you!
I tried writing:
dtc2 = DecisionTreeClassifier(criterion = 'entropy', ccp_alpha=0.04)
Which should be standard line of code to build a dataframe.
ccc_alphais not a standard Jupyter notebook keyword (in fact, Jupyter notebooks don't really have keywords). It's a parameter of the scikit-learn classDecisionTreeClassifier.