class_docstr: CategoricalOneHotEncoderConfig is a dataclass that configures the parameters used for a categorical onehot
  encoder.
class_docstr_tok: ["CategoricalOneHotEncoderConfig","is","a","dataclass","that","configures","the","parameters","used","for","a","categorical","onehot","encoder","."]
code: def set_fixed_preprocessing_params(
      self,
      model_type: str,
      preprocessing: "CategoryPreprocessingConfig",
  ):
      if model_type == MODEL_GBM:
          preprocessing.cache_encoder_embeddings = True
  
imports: from typing import List, TYPE_CHECKING
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.constants import CATEGORY, MODEL_ECD, MODEL_GBM
  from ludwig.schema import common_fields
  from ludwig.schema import utils
  from ludwig.schema.encoders.base import BaseEncoderConfig
  from ludwig.schema.encoders.utils import register_encoder_config
  from ludwig.schema.metadata import ENCODER_METADATA
  from ludwig.schema.utils import ludwig_dataclass
label_desc: Use image node_id 1 for calling the CategoricalOneHotEncoderConfig obj's underlying member method code with example usage: obj.set_fixed_preprocessing_params(model_type, preprocessing) without return types