July 2020
Intermediate to advanced
496 pages
9h 10m
English
In this activity, we will utilize the same logistic regression model from the scikit-learn package. This time, however, we will add regularization to the model and search for the optimum regularization parameter - a process often called hyperparameter tuning. After training the models, we will test the predictions and compare the model evaluation metrics to the ones that were produced by the baseline model and the model without regularization.
import pandas as pd
feats = pd.read_csv('../data/OSI_feats_e3.csv') ...