original_docstring: Check the parameters provided by cfg
docstring: Check the parameters provided by cfg
docstring_tokens: Check the parameters provided by cfg
code: def __check_parameters():
      """Check the parameters provided by cfg"""
      for key, parameter in PARAMETERS_INTERVAL.items():
          if key not in CHECK_PARAMETERS_INTERVAL.keys():
              continue
  
          if parameter["type"] == "string":
              if len(parameter["value"]) == 0:
                  raise ValueError(
                      f"GA.SEARCH_SPACE.{key} parameters cannot "
                      f"be empty."
                      f"Check the documentation! \n"
                      f"Options: {CHECK_PARAMETERS_INTERVAL[key]}"
                  )
  
              if not all(
                  item in CHECK_PARAMETERS_INTERVAL[key]
                  for item in parameter["value"]
              ):
                  raise ValueError(
                      f"GA.SEARCH_SPACE.{key} parameters with "
                      f"invalid value. "
                      f"Check the documentation! \n"
                      f"Options: {CHECK_PARAMETERS_INTERVAL[key]}"
                  )
  
          elif parameter["type"] == "numbers":
              if (
                  type(parameter["value"]) != list
                  or not all(
                      type(i) == int or type(i) == float
                      for i in parameter["value"]
                  )
                  or min(parameter["value"])
                  < CHECK_PARAMETERS_INTERVAL[key]["MIN"]
                  or max(parameter["value"])
                  > CHECK_PARAMETERS_INTERVAL[key]["MAX"]
              ):
                  raise ValueError(
                      f"GA.SEARCH_SPACE.{key} parameters with "
                      f"invalid value. "
                      f"Check the documentation! \n"
                      f"Options: {CHECK_PARAMETERS_INTERVAL[key]}"
                  )
  
          elif parameter["type"] == "number":
              if (
                  (
                      type(parameter["value"]) != float
                      and type(parameter["value"]) != int
                  )
                  or parameter["value"] < CHECK_PARAMETERS_INTERVAL[key]["MIN"]
                  or parameter["value"] > CHECK_PARAMETERS_INTERVAL[key]["MAX"]
              ):
                  raise ValueError(
                      f"GA.SEARCH_SPACE.{key} parameters with "
                      f"invalid value. "
                      f"Check the documentation! \n"
                      f"{CHECK_PARAMETERS_INTERVAL[key]}"
                  )
code_tokens: def __check_parameters ( ) : for key , parameter in PARAMETERS_INTERVAL . items ( ) : if key not in CHECK_PARAMETERS_INTERVAL . keys ( ) : continue if parameter [ "type" ] == "string" : if len ( parameter [ "value" ] ) == 0 : raise ValueError ( f"GA.SEARCH_SPACE.{key} parameters cannot " f"be empty." f"Check the documentation! \n" f"Options: {CHECK_PARAMETERS_INTERVAL[key]}" ) if not all ( item in CHECK_PARAMETERS_INTERVAL [ key ] for item in parameter [ "value" ] ) : raise ValueError ( f"GA.SEARCH_SPACE.{key} parameters with " f"invalid value. " f"Check the documentation! \n" f"Options: {CHECK_PARAMETERS_INTERVAL[key]}" ) elif parameter [ "type" ] == "numbers" : if ( type ( parameter [ "value" ] ) != list or not all ( type ( i ) == int or type ( i ) == float for i in parameter [ "value" ] ) or min ( parameter [ "value" ] ) < CHECK_PARAMETERS_INTERVAL [ key ] [ "MIN" ] or max ( parameter [ "value" ] ) > CHECK_PARAMETERS_INTERVAL [ key ] [ "MAX" ] ) : raise ValueError ( f"GA.SEARCH_SPACE.{key} parameters with " f"invalid value. " f"Check the documentation! \n" f"Options: {CHECK_PARAMETERS_INTERVAL[key]}" ) elif parameter [ "type" ] == "number" : if ( ( type ( parameter [ "value" ] ) != float and type ( parameter [ "value" ] ) != int ) or parameter [ "value" ] < CHECK_PARAMETERS_INTERVAL [ key ] [ "MIN" ] or parameter [ "value" ] > CHECK_PARAMETERS_INTERVAL [ key ] [ "MAX" ] ) : raise ValueError ( f"GA.SEARCH_SPACE.{key} parameters with " f"invalid value. " f"Check the documentation! \n" f"{CHECK_PARAMETERS_INTERVAL[key]}" )
short_docstring: Check the parameters provided by cfg
short_docstring_tokens: Check the parameters provided by cfg
comment: """Check the parameters provided by cfg"""