update week 39
This commit is contained in:
@@ -139,6 +139,9 @@ print(f"R2 score: {R2(y_test,ypredictRidge)}")
|
||||
|
||||
By default the grid search function includes cross validation with five folds. The "Scikit-Learn documentation":"https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html#sklearn.model_selection.GridSearchCV" contains more information on how to set the different parameters.
|
||||
|
||||
If we take out the random noise, running the above codes results in $\lambda=0$ yielding the best fit.
|
||||
|
||||
|
||||
!split
|
||||
===== Randomized Grid Search =====
|
||||
|
||||
|
||||
Reference in New Issue
Block a user