Data Science, Machine Learning, Data Analytics, Knowledgebase Analytics, Regularization.
observations is less than the number of features, ridge regression can prove instrumental in obtaining reliable coefficient estimates. R Code: library(ISLR) library(caret) library(glmnet) library(ggplot2) # Load the Hitters dataset data(Hitters) hitters <- na.omit(Hitters) # Prepare the data