0
$\begingroup$

While solving the questions for machine learning, I got two values for R square from 2 different regressors, i.e, 0.9999 and 0.9769. So, which should go for as both could lead to overfitting? Thanks in advance

$\endgroup$
1
  • $\begingroup$ Please provide us with more information. How many samples do you have in your dataset? What is the variance of your target variable? $\endgroup$
    – pythinker
    Commented Apr 11, 2019 at 12:44

1 Answer 1

0
$\begingroup$

Are you asking about rmse or r-squared?

The size of rmse depends on the general range of your response feature(predicting target). The lower the better.

As to r-squared, both 0.9999 and 0.9769 are very likely to indicate overfitting. If you have to choose between these two models, my suggestion is to evaluate them using generalization error. You can also do cross-validation if no out-of-sample data are available.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.