{"record":{"id":"c1319e4b0466ee49","repo":"tensorflow/models","slug":"unsupported-learning-rate-type","errorCode":null,"errorMessage":"Unsupported learning rate type: {}.","messagePattern":"Unsupported learning rate type: (.+?)\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/legacy/detection/modeling/learning_rates.py:98","lineNumber":98,"sourceCode":"  if params.type == 'step':\n    return StepLearningRateWithLinearWarmup(total_steps, params)\n  elif params.type == 'cosine':\n    return CosineLearningRateWithLinearWarmup(total_steps, params)\n  else:\n    raise ValueError('Unsupported learning rate type: {}.'.format(params.type))","sourceCodeStart":null,"sourceCodeEnd":null,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/legaacy/detection/modeling/learning_rates.py#L98","documentation":"Learning-rate factory dispatch guard: params.type matched neither 'step' nor 'cosine', the only supported warmup schedule types. The configuration's learning rate type string is unrecognized.","triggerScenarios":"Thrown at official/legaacy/detection/modeling/learning_rates.py:98 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the learning rate type to 'step' or 'cosine'","Check the config yaml/flags for typos in the learning rate type field"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}