class_docstr: This class represents a hyperparameter.
class_docstr_tok: ["This","class","represents","a","hyperparameter","."]
code: def convertToStructuredValues(self, flatValues):
      if "anyOf" in self.config or "oneOf" in self.config:
          if "anyOf" in self.config:
              data = self.config["anyOf"]
          else:
              data = self.config["oneOf"]
  
          subParameterIndex = flatValues[self.name]
          subParam = Hyperparameter(
              data[subParameterIndex],
              self,
              self.root + "." + str(subParameterIndex),
          )
  
          structured = subParam.convertToStructuredValues(flatValues)
          structured["$index"] = subParameterIndex
  
          return structured
      elif "constant" in self.config:
          return flatValues[self.name]
      elif "enum" in self.config:
          return flatValues[self.name]
      elif self.config["type"] == "object":
          result = {}
          for key in self.config["properties"].keys():
              config = self.config["properties"][key]
  
              subStructuredValue = Hyperparameter(
                  config, self, self.root + "." + key
              ).convertToStructuredValues(flatValues)
  
              result[key] = subStructuredValue
  
              if self.name == "":
                  for key in flatValues.keys():
                      if key.startswith("$"):
                          result[key] = flatValues[key]
          return result
      elif self.config["type"] == "number":
          return flatValues[self.name]
  
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 7 for calling the Hyperparameter obj's underlying member method code with example usage: obj.convertToStructuredValues(flatValues) and returns: structured, flatValues, flatValues, result, flatValues