Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created June 15, 2021 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/59ce487806c4987a41e30a0acb18ff43 to your computer and use it in GitHub Desktop.
Save amankharwal/59ce487806c4987a41e30a0acb18ff43 to your computer and use it in GitHub Desktop.
xtrain, xtest, ytrain, ytest = train_test_split(x, y,
test_size=0.10,
random_state=42)
model = DecisionTreeClassifier()
model.fit(xtrain, ytrain)
predictions = model.predict(xtest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment