docstr: Subset of model types to train during `fit()`.
  Reference `hyperparameters` documentation for what models correspond to each value.
  Useful when only the particular models should be trained such as 'KNN' or 'custom', but altering the `hyperparameters` dictionary is difficult or time-consuming.
      Example: To keep only 'KNN' and 'custom' models, specify `included_model_types=['KNN', 'custom']`.
docstr_tok: ["Subset","of","model","types","to","train","during","`","fit","(",")","`",".","Reference","`","hyperparameters","`","documentation","for","what","models","correspond","to","each","value",".","Useful","when","only","the","particular","models","should","be","trained","such","as","'KNN","'","or","'custom","'",",","but","altering","the","`","hyperparameters","`","dictionary","is","difficult","or","time-consuming",".","Example",":","To","keep","only","'KNN","'","and","'custom","'","models",",","specify","`","included_model_types=","[","'KNN","'",",","'custom","'","]","`","."]
code: def included_model_types(
      self, models: Union[str, list]
  ) -> ConfigBuilder:
      """
      Subset of model types to train during `fit()`.
      Reference `hyperparameters` documentation for what models correspond to each value.
      Useful when only the particular models should be trained such as 'KNN' or 'custom', but altering the `hyperparameters` dictionary is difficult or time-consuming.
          Example: To keep only 'KNN' and 'custom' models, specify `included_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]
  
      unknown_keys = [
          k
          for k in models
          if isinstance(k, str) and (k not in valid_keys)
      ]
      assert (
          len(unknown_keys) == 0
      ), f"The following model types are not recognized: {unknown_keys} - use one of the valid models: {valid_keys}"
  
      models = [m for m in valid_keys if m not in models]
      self.config["excluded_model_types"] = 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 16 for calling the ConfigBuilder obj's underlying member method code with example usage: obj.included_model_types(models) and returns: self