def encode(self, tf_graph_predictions):
    """Encodes the graph json prediction into csv.

    Args:
      tf_graph_predictions: python dict.

    Returns:
      csv string.
    """
    row = []
    for col in self._header:
      row.append(str(tf_graph_predictions[col]))

    return ','.join(row)
def encode ( self , tf_graph_predictions ) : row = [ ] for col in self . _header : row . append ( str ( tf_graph_predictions [ col ] ) ) return ',' . join ( row )
Encodes the graph json prediction into csv.

    Args:
      tf_graph_predictions: python dict.

    Returns:
      csv string.