Skip to content

Instantly share code, notes, and snippets.

@theSekyi
Created May 17, 2019 09:21
Show Gist options
  • Select an option

  • Save theSekyi/f73831dd35873e8cab5e493acbba5fe5 to your computer and use it in GitHub Desktop.

Select an option

Save theSekyi/f73831dd35873e8cab5e493acbba5fe5 to your computer and use it in GitHub Desktop.
tree_classifier = DecisionTreeClassifier(max_depth=2)
df_x = df.copy()
X = df_x.drop('quality',axis=1)
y = df['quality']
tree_classifier.fit(X,y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment