Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Jun 21, 2021
Embed
What would you like to do?
from sklearn.tree import DecisionTreeRegressor
model = DecisionTreeRegressor()
model.fit(xtrain, ytrain)
ypred = model.predict(xtest)
data = pd.DataFrame(data={"Predicted Rate": ypred})
print(data.head())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment