docstr: Ensures that compiler_configs maps to the correct models if the user specified the same keys as in hyperparameters such as RT, XT, etc.
docstr_tok: ["Ensures","that","compiler_configs","maps","to","the","correct","models","if","the","user","specified","the","same","keys","as","in","hyperparameters","such","as","RT",",","XT",",","etc","."]
code: def compile(
      self,
      model_names="all",
      with_ancestors=False,
      compiler_configs: dict = None,
  ) -> List[str]:
      """Ensures that compiler_configs maps to the correct models if the user specified the same keys as in hyperparameters such as RT, XT, etc."""
      if compiler_configs is not None:
          model_types_map = self._get_model_types_map()
          compiler_configs_new = dict()
          for k in compiler_configs:
              if k in model_types_map:
                  compiler_configs_new[
                      model_types_map[k]
                  ] = compiler_configs[k]
              else:
                  compiler_configs_new[k] = compiler_configs[k]
          compiler_configs = compiler_configs_new
      return super().compile(
          model_names=model_names,
          with_ancestors=with_ancestors,
          compiler_configs=compiler_configs,
      )
  
file_path: autogluon/tabular/src/autogluon/tabular/trainer/auto_trainer.py
imports: import logging
  from typing import Dict, List
  from autogluon.core.models import AbstractModel
  from autogluon.core.trainer.abstract_trainer import AbstractTrainer
  from autogluon.core.utils import generate_train_test_split
  from ..models.lgb.lgb_model import LGBModel
  from .model_presets.presets import MODEL_TYPES, get_preset_models
  from .model_presets.presets_distill import get_preset_models_distillation
label_desc: Use image node_id 5 for calling the AutoTrainer obj's underlying member method code with example usage: obj.compile(model_names, with_ancestors, compiler_configs) and returns: super