code: def _detach_recipe(self, recipe):
      self.search_space = recipe.search_space()
  
      stop = recipe.runtime_params()
      self.metric_threshold = None
      if "reward_metric" in stop.keys():
          self.mode = Evaluator.get_metric_mode(self.metric)
          self.metric_threshold = (
              -stop["reward_metric"]
              if self.mode == "min"
              else stop["reward_metric"]
          )
      self.epochs = stop["training_iteration"]
      self.num_samples = stop["num_samples"]
  
file_path: BigDL/python/chronos/src/bigdl/chronos/autots/deprecated/regression/base_predictor.py
imports: import pandas
  import os
  from abc import abstractmethod
  from bigdl.orca.automl.metrics import Evaluator
  from bigdl.chronos.autots.deprecated.pipeline.time_sequence import TimeSequencePipeline
  from bigdl.orca.automl.search.utils import process
  from bigdl.chronos.autots.deprecated.config.recipe import *
  from bigdl.orca.ray import OrcaRayContext
  from bigdl.orca.automl.auto_estimator import AutoEstimator
label_desc: Use image node_id 8 for calling the BasePredictor obj's underlying member method code with example usage: obj._detach_recipe(recipe) without return types