In [ ]:
from sklearn import tree
In [ ]:
if 'features_train' not in locals() or globals():
%run ../dev/environment_setup.ipynb
In [ ]:
clf = tree.DecisionTreeClassifier() #if nothing is specified default value is 2
In [ ]:
train_predict("Train and Predict Data with min_samples_split = 2")
In [ ]:
clf = tree.DecisionTreeClassifier(min_samples_split=40)
In [ ]:
train_predict("Train and Predict Data with min_samples_split = 40")