{"record":{"id":"6aa3b27b0ca7aa70","repo":"tensorflow/models","slug":"malformed-hyperparameter-value-while-parsing-csv-s","errorCode":null,"errorMessage":"Malformed hyperparameter value while parsing CSV string: %s","messagePattern":"Malformed hyperparameter value while parsing CSV string: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/modeling/hyperparams/params_dict.py","lineNumber":400,"sourceCode":"  Returns:\n    the converted JSON string.\n\n  Raises:\n    ValueError: If csv_str is not in a comma separated string or\n      if the string is formatted incorrectly.\n  \"\"\"\n  if not csv_str:\n    return ''\n\n  array_param_map = collections.defaultdict(str)\n  max_index_map = collections.defaultdict(str)\n  formatted_entries = []\n  nested_map = collections.defaultdict(list)\n  pos = 0\n  while pos < len(csv_str):\n    m = _PARAM_RE.match(csv_str, pos)\n    if not m:\n      raise ValueError('Malformed hyperparameter value while parsing '\n                       'CSV string: %s' % csv_str[pos:])\n    pos = m.end()\n    # Parse the values.\n    m_dict = m.groupdict()\n    name = m_dict['name']\n    v = m_dict['val']\n    bracketed_index = m_dict['bracketed_index']\n    # If we reach the name of the array.\n    if bracketed_index and '.' not in name:\n      # Extract the array's index by removing '[' and ']'\n      index = int(bracketed_index[1:-1])\n      if '.' in v:\n        numeric_val = float(v)\n      else:\n        numeric_val = int(v)\n      # Add the value to the array.\n      if name not in array_param_map:\n        max_index_map[name] = index  # pyrefly: ignore[unsupported-operation]","sourceCodeStart":382,"sourceCodeEnd":418,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/modeling/hyperparams/params_dict.py#L382-L418","documentation":"Error \"Malformed hyperparameter value while parsing CSV string: %s\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/modeling/hyperparams/params_dict.py:400 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}