I am currently solving one classification problem using decision tree algorithm in python.
I have read that The more features the algorithm has available, the more chance for a complex fit.So I want to know the code by which I can calculate the number of features in training data.
My classifier code.
from sklearn import tree
clf = tree.DecisionTreeClassifier(min_samples_split=40)