I am new to Machine Learning . When i am practicing Decision tree regression model with default parameters using boston data set from scikit-learn module.
After this link solution(How to Build a Decision tree Regressor model), i printed model accuracy on training data set with
print(dt_reg.score(X_train,Y_train)))
print(dt_reg.score(X_test,Y_test)))
Now, im facing issue with : print the Predicted housing price for first two samples of X_test set. For this , i wrote like below, but not getting correct output. Could you please help me to predict first 2 sample of X_test dataset.
predicted = dt_reg.predict(X_test)
for i in range(2):
print("Predict housing price",predicted[i])