code: def __init__(self, algorithm_name="tpe"):
      if algorithm_name == "tpe":
          self.hyperopt_algorithm = hyperopt.tpe.suggest
      elif algorithm_name == "random_search":
          self.hyperopt_algorithm = hyperopt.rand.suggest
      elif algorithm_name == "anneal":
          self.hyperopt_algorithm = hyperopt.anneal.suggest
  
file_path: advisor/advisor_server/suggestion/algorithm/base_hyperopt_algorithm.py
imports: import json
  import numpy
  import hyperopt
  from suggestion.models import Study
  from suggestion.models import Trial
  from suggestion.algorithm.abstract_algorithm import AbstractSuggestionAlgorithm
label_desc: Use image node_id 1 to create a new BaseHyperoptAlgorithm object from inherited base classes: AbstractSuggestionAlgorithm with example: obj = BaseHyperoptAlgorithm(algorithm_name)