code: def __init__(self, **kwargs):
      if self.backend.startswith("torch"):
          from bigdl.orca.automl.model.base_pytorch_model import (
              PytorchModelBuilder,
          )
  
          self._DEFAULT_BEST_MODEL_DIR = "best_model.ckpt"
          self._DEFAULT_BEST_CONFIG_DIR = "best_config.json"
          model_builder = PytorchModelBuilder(
              model_creator=self._model_creator,
              optimizer_creator=self.optimizer,
              loss_creator=self.loss,
          )
      elif self.backend.startswith("keras"):
          from bigdl.orca.automl.model.base_keras_model import (
              KerasModelBuilder,
          )
  
          self.search_space.update(
              {"optimizer": self.optimizer, "loss": self.loss}
          )
          model_builder = KerasModelBuilder(
              model_creator=self._model_creator
          )
          self._DEFAULT_BEST_MODEL_DIR = "best_keras_model.ckpt"
          self._DEFAULT_BEST_CONFIG_DIR = "best_keras_config.json"
  
      from bigdl.orca.automl.auto_estimator import AutoEstimator
  
      self.auto_est = AutoEstimator(
          model_builder, **self._auto_est_config
      )
      self.best_model = None
  
file_path: BigDL/python/chronos/src/bigdl/chronos/autots/model/base_automodel.py
imports: import os
  import json
  from bigdl.chronos.autots.utils import recalculate_n_sampling
  import warnings
label_desc: Use image node_id 1 to create a new BaseAutomodel object  with example: obj = BaseAutomodel()