Chengwei LEI, Ph.D.    Associate Professor

Department of Computer and Electrical Engineering and Computer Science
California State University, Bakersfield

 

Correctness of Data Science Project

 


 

Is this correct?

 


 


 

 


 

 





 

by "following" the "tutorial" online

 

#Building the Decision Tree Model on our dataset
from sklearn.tree import DecisionTreeRegressor
DT_model = DecisionTreeRegressor(max_depth=5).fit(X_train,Y_train)
DT_predict = DT_model.predict(X_test) #Predictions on Testing data
print(DT_predict)

 

 














Can you tell me more about the answer?






Double Integral Overview, Properties & Examples - Lesson | Study.com