Skip to content

Instantly share code, notes, and snippets.

@khyatimahendru
Last active June 18, 2019 12:27
Show Gist options
  • Select an option

  • Save khyatimahendru/f91bfa36b4b8f06a0c489d990fc47243 to your computer and use it in GitHub Desktop.

Select an option

Save khyatimahendru/f91bfa36b4b8f06a0c489d990fc47243 to your computer and use it in GitHub Desktop.
from sklearn.tree import DecisionTreeClassifier
clf_gini = DecisionTreeClassifier(criterion = 'gini', random_state = 33)
clf_gini.fit(X, Y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment