class_docstr: The implementation is based on https://github.com/tobegit3hub/advisor
class_docstr_tok: ["The","implementation","is","based","on","https",":","\/\/github.com\/tobegit3hub\/advisor"]
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: AutoGL/autogl/module/hpo/suggestion/algorithm/base_hyperopt_algorithm.py
imports: import json
  import numpy
  import hyperopt
  import random
  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)