docstr: Banned subset of model types to avoid training during `fit()`, even if present in `hyperparameters`.
  Reference `hyperparameters` documentation for what models correspond to each value.
  Useful when a particular model type such as 'KNN' or 'custom' is not desired but altering the `hyperparameters` dictionary is difficult or time-consuming.
      Example: To exclude both 'KNN' and 'custom' models, specify `excluded_model_types=['KNN', 'custom']`.
docstr_tok: ["Banned","subset","of","model","types","to","avoid","training","during","`","fit","(",")","`",",","even","if","present","in","`","hyperparameters","`",".","Reference","`","hyperparameters","`","documentation","for","what","models","correspond","to","each","value",".","Useful","when","a","particular","model","type","such","as","'KNN","'","or","'custom","'","is","not","desired","but","altering","the","`","hyperparameters","`","dictionary","is","difficult","or","time-consuming",".","Example",":","To","exclude","both","'KNN","'","and","'custom","'","models",",","specify","`","excluded_model_types=","[","'KNN","'",",","'custom","'","]","`","."]
code: def excluded_model_types(
      self, models: Union[str, list]
  ) -> ConfigBuilder:
      """
      Banned subset of model types to avoid training during `fit()`, even if present in `hyperparameters`.
      Reference `hyperparameters` documentation for what models correspond to each value.
      Useful when a particular model type such as 'KNN' or 'custom' is not desired but altering the `hyperparameters` dictionary is difficult or time-consuming.
          Example: To exclude both 'KNN' and 'custom' models, specify `excluded_model_types=['KNN', 'custom']`.
      """
      valid_keys = [
          m
          for m in MODEL_TYPES.keys()
          if m not in ["ENS_WEIGHTED", "SIMPLE_ENS_WEIGHTED"]
      ]
      if not isinstance(models, list):
          models = [models]
      for model in models:
          assert (
              model in valid_keys
          ), f"{model} is not one of the valid models {valid_keys}"
      self.config["excluded_model_types"] = sorted(list(set(models)))
      return self
  
imports: from __future__ import annotations
  import copy
  from typing import Union
  from sklearn.base import BaseEstimator
  from autogluon.core.scheduler import scheduler_factory
  from autogluon.features import AutoMLPipelineFeatureGenerator
  from autogluon.tabular.configs.hyperparameter_configs import hyperparameter_config_dict
  from autogluon.tabular.configs.presets_configs import tabular_presets_dict
  from autogluon.tabular.trainer.model_presets.presets import MODEL_TYPES
label_desc: Use image node_id 15 for calling the ConfigBuilder obj's underlying member method code with example usage: obj.excluded_model_types(models) and returns: self