Skip to content

Instantly share code, notes, and snippets.

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