Apply the self.categorical_mappings_ mappings where necessary.

def _convert_nonstring_categoricals(self, param_dict):
        """Apply the self.categorical_mappings_ mappings where necessary."""
        return {name: (self.categorical_mappings_[name][val] if name in self.categorical_mappings_ else val)
                for (name, val) in param_dict.items()}