class_docstr: This class represents a hyperparameter.
class_docstr_tok: ["This","class","represents","a","hyperparameter","."]
code: def getFlatParameters(self):
      name = self.root
      if "anyOf" in self.config or "oneOf" in self.config:
          parameters = []
          if "anyOf" in self.config:
              data = self.config["anyOf"]
          else:
              data = self.config["oneOf"]
  
          for index, param in enumerate(data):
              subParameters = Hyperparameter(
                  param, self, name + "." + str(index)
              ).getFlatParameters()
              parameters = parameters + subParameters
          return parameters
      elif "enum" in self.config or "constant" in self.config:
          return [self]
      elif self.config["type"] == "object":
          parameters = []
          for key in self.config["properties"].keys():
              config = self.config["properties"][key]
              subParameters = Hyperparameter(
                  config, self, name + "." + key
              ).getFlatParameters()
              parameters = parameters + subParameters
          return parameters
      elif self.config["type"] == "number":
          return [self]
  
file_path: hypermax/hypermax/hyperparameter.py
imports: from hyperopt import hp
  import math
  from pprint import pprint
  import re
label_desc: Use image node_id 4 for calling the Hyperparameter obj's underlying member method code with example usage: obj.getFlatParameters() and returns: parameters, list, parameters, list