parameters: (export_outputs)
return_statement: return None
docstring: Converts EstimatorSpec.export_outputs to output_alternatives.
  
    Args:
      export_outputs: export_outputs created by create_estimator_spec.
    Returns:
      converted output_alternatives.
docstring_summary: Converts EstimatorSpec.export_outputs to output_alternatives.
docstring_tokens: Converts EstimatorSpec . export_outputs to output_alternatives .
function: def _export_outputs_to_output_alternatives(export_outputs):
    """Converts EstimatorSpec.export_outputs to output_alternatives.
  
    Args:
      export_outputs: export_outputs created by create_estimator_spec.
    Returns:
      converted output_alternatives.
    """
    output = {}
    if export_outputs is not None:
      for key, value in export_outputs.items():
        if isinstance(value, export_output.ClassificationOutput):
          exported_predictions = {
              prediction_key.PredictionKey.SCORES: value.scores,
              prediction_key.PredictionKey.CLASSES: value.classes
          }
          output[key] = (constants.ProblemType.CLASSIFICATION,
                         exported_predictions)
      return output
    return None
function_tokens: def _export_outputs_to_output_alternatives ( export_outputs ) : output = { } if export_outputs is not None : for key , value in export_outputs . items ( ) : if isinstance ( value , export_output . ClassificationOutput ) : exported_predictions = { prediction_key . PredictionKey . SCORES : value . scores , prediction_key . PredictionKey . CLASSES : value . classes } output [ key ] = ( constants . ProblemType . CLASSIFICATION , exported_predictions ) return output return None