(self, d)
return d
Remove redundant items from a model's configuration dict.

        Parameters
        ----------
        d : dict
            Modified in place.

        Returns
        -------
        dict
            Modified `d`.
Remove redundant items from a model's configuration dict.
Remove redundant items from a model s configuration dict .
def _process_model_dict(self, d):
        """
        Remove redundant items from a model's configuration dict.

        Parameters
        ----------
        d : dict
            Modified in place.

        Returns
        -------
        dict
            Modified `d`.

        """
        del d['model_type']
        del d['sample_size']
        del d['probability_mode']
        del d['choice_mode']
        del d['choosers_fit_filters']
        del d['choosers_predict_filters']
        del d['alts_fit_filters']
        del d['alts_predict_filters']
        del d['interaction_predict_filters']
        del d['estimation_sample_size']
        del d['prediction_sample_size']
        del d['choice_column']

        if d['model_expression'] == self.default_model_expr:
            del d['model_expression']

        d["name"] = yamlio.to_scalar_safe(d["name"])

        return d
def _process_model_dict ( self , d ) : del d [ 'model_type' ] del d [ 'sample_size' ] del d [ 'probability_mode' ] del d [ 'choice_mode' ] del d [ 'choosers_fit_filters' ] del d [ 'choosers_predict_filters' ] del d [ 'alts_fit_filters' ] del d [ 'alts_predict_filters' ] del d [ 'interaction_predict_filters' ] del d [ 'estimation_sample_size' ] del d [ 'prediction_sample_size' ] del d [ 'choice_column' ] if d [ 'model_expression' ] == self . default_model_expr : del d [ 'model_expression' ] d [ "name" ] = yamlio . to_scalar_safe ( d [ "name" ] ) return d