@@ -35,8 +35,9 @@ Initializes CsvCoder.
35
35
* <b >` delimiter ` </b >: A one-character string used to separate fields.
36
36
* <b >` secondary_delimiter ` </b >: A one-character string used to separate values within
37
37
the same field.
38
- * <b >` multivalent_columns ` </b >: A list of names for multivalent columns that need
39
- to be split based on secondary delimiter.
38
+ * <b >` multivalent_columns ` </b >: A list of names for multivalent columns that need to
39
+ be split based on secondary delimiter.
40
+
40
41
41
42
#### Raises:
42
43
@@ -56,14 +57,15 @@ Decodes the given string record according to the schema.
56
57
57
58
Missing value handling is as follows:
58
59
59
- 1.a) If FixedLenFeature and has a default value, use that value for missing
60
- entries.
61
- 1.b) If FixedLenFeature and doesn't has default value throw an Exception on
62
- missing entries.
60
+ 1 . For FixedLenFeature:
61
+ 1 . If FixedLenFeature and has a default value, use that value for
62
+ missing entries.
63
+ 2 . If FixedLenFeature and doesn't have default value throw an Exception
64
+ on missing entries.
63
65
64
- 2 ) For VarLenFeature return an empty array.
66
+ 2 . For VarLenFeature return an empty array.
65
67
66
- 3 ) For SparseFeature throw an Exception if only one of the indices or values
68
+ 3 . For SparseFeature throw an Exception if only one of the indices or values
67
69
has a missing entry. If both indices and values are missing, return
68
70
a tuple of 2 empty arrays.
69
71
@@ -98,8 +100,8 @@ Encode a tf.transform encoded dict to a csv-formatted string.
98
100
99
101
#### Args:
100
102
101
- * <b >` instance ` </b >: A python dictionary where the keys are the column names and
102
- the values are fixed len or var len encoded features.
103
+ * <b >` instance ` </b >: A python dictionary where the keys are the column names and the
104
+ values are fixed len or var len encoded features.
103
105
104
106
105
107
#### Returns:
0 commit comments