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 = []
          v = "anyOf" if "anyOf" in self.config else "oneOf"
          data = self.config[v]
  
          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]
  
imports: from hyperopt import hp
  from contextlib import contextmanager
  import re
  import functools
  import random
  import numpy
  import numpy.random
  import pkg_resources
  import tempfile
  import scipy.stats
  import os
  import math
  import hyperopt
  import datetime
  import json
  import copy
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