Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 29, 2021 06:26
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/d2dbc41116d5afff4a177d9359c71a95 to your computer and use it in GitHub Desktop.
Save amankharwal/d2dbc41116d5afff4a177d9359c71a95 to your computer and use it in GitHub Desktop.
from sklearn.tree import DecisionTreeRegressor
model = DecisionTreeRegressor()
model.fit(xtrain, ytrain)
ypred = model.predict(xtest)
print(ypred)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment