#NEWLINE# def _process_model_dict( self , d ) : #NEWLINE# #INDENT# "\n        Remove redundant items from a model's configuration dict.\n\n        Parameters\n        ----------\n        d : dict\n            Modified in place.\n\n        Returns\n        -------\n        dict\n            Modified `d`.\n\n        " #NEWLINE# del d [ 'model_type' ] #NEWLINE# del d [ 'sample_size' ] #NEWLINE# del d [ 'probability_mode' ] #NEWLINE# del self [ 'choice_mode' ] #NEWLINE# del d [ 'choosers_fit_filters' ] #NEWLINE# del d [ 'choosers_predict_filters' ] #NEWLINE# del d [ 'alts_fit_filters' ] #NEWLINE# del d [ 'alts_predict_filters' ] #NEWLINE# del d [ 'interaction_predict_filters' ] #NEWLINE# del d [ 'estimation_sample_size' ] #NEWLINE# del d [ 'prediction_sample_size' ] #NEWLINE# del d [ 'choice_column' ] #NEWLINE# if ( d [ 'model_expression' ] == self . default_model_expr ) : #NEWLINE# #INDENT# del d [ 'model_expression' ] #NEWLINE# #UNINDENT# d [ 'name' ] = yamlio . to_scalar_safe ( d [ 'name' ] ) #NEWLINE# return d