@hinduja1234 wrote:
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)
clf= clf.fit(features_train,labels_train)
ypred= clf.predict(features_test)
Posts: 2
Participants: 2