Question: 1 . Create the DecisionTreeRegressor model object using the hyperparameter values above and assign to variable ' dt _ model' 2 . Fit the model

1. Create the DecisionTreeRegressor model object using the hyperparameter values above and assign to variable 'dt_model'
2. Fit the model to the training data below
3. Call predict() to use the fitted model to make predictions on the test data. Save the results to variable 'y_dt_pred'
4: Compute the RMSE and R2(on y_test and y_dt_pred) and save the results to dt_rmse and dt_r2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!