Reviewing traditional model interpretation methods
To explore as many model classes and interpretation methods as possible, we will fit the data to regression and classification models as well as to dimensionality reduction methods.
Predicting minutes delayed with various regression methods
To compare and contrast regression methods, we will first create a dictionary named reg_models
. Each model is its own dictionary and the function that creates it in the model
attribute. This structure will be used later to store the fitted model neatly and its metrics. Model classes in this dictionary have been chosen to represent several model families and to illustrate important concepts that we will discuss later:
Reg_models = { #Generalized Linear Models (GLMs) 'linear':{'model': linear_model.LinearRegression()}, 'linear_poly':{'model': make_pipeline...