SUKHMAN-SINGH-1612/Data-Science-Projects

In the medical cost prediction workbook cell 177 needs to check

Closed this issue · 3 comments

In the medical cost prediction workbook

Pls check cell number 177 - The Accuracy needs the Parameters y_test and dtree_pred but you took something else , which is not making sense

print('MAE:', mean_absolute_error(y_test, dtree_pred))
print('MSE:', mean_squared_error(y_test, dtree_pred))
print('RMSE:', np.sqrt(mean_squared_error(y_test, dtree_pred)))
print('Accuracy:', dtree.score(x_test,y_test))

Thanks for noticing the error. Yeah, your suggestion is correct, there has been the syntax mistake. Moreover I will use r2 score for accuracy in the future projects.

Do you have any similar project ?

Well, all my data science projects are in this repository only. You can explore other projects , I have already uploaded description and dataset for each project