简体   繁体   中英

R-squared for training set is way larger then the R-squared for testing set. What can that mean for the regression model?

Training Metrics:
R squared: 0.8099510921986353

Testing Metrics:
R squared: 0.17368322884835363

This is the result. I tried optimizing the data but the result does not change by much? What must be wrong with the model or data? What can this difference in value mean for the model and data being used?

Probably your model is overfitted for your training dataset. You could change the hyperparameters or try different resampling methods (eg try lower k for cross-validation).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM