Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created June 15, 2021 12:21
Embed
What would you like to do?
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