May 8, 2024, 11:34 AM
GridSearchCV
or RandomizedSearchCV
for systematic hyperparameter optimization.PolynomialFeatures
from the sklearn library, focusing only on interaction features (no polynomial terms).GridSearchCV
from sklearn. This tool will systematically work through multiple combinations of parameter tunes, cross-validating as it goes to determine which tune gives the best performance.C
(Inverse of regularization strength): A lower value of C specifies stronger regularization.solver
: Different algorithms for optimization (e.g., 'liblinear', 'sag').GridSearchCV
, focusing on the regularization strength (C
) and solver method. Here are the highlights of our analysis:C
: 10 (indicating a moderate level of regularization)Solver
: 'newton-cg'GridSearchCV
to optimize the model parameters, particularly focusing on regularization strength and solver type.C=10
and solver=newton-cg
.