Reputation: 11
I am trying to replicate a decision tree from SPSS in python using DecisionTreeClassifier. I am unable to do the following.
Any help in this would be really helpful.
I use this bit of code to give same parameters and run the model:
criterion='gini', # CART method
max_depth=5,
min_samples_split=100,
min_samples_leaf=50
)
clf = clf.fit(X_train, y_train)
Model fit is not matching with this model.
Upvotes: 0
Views: 47