updates docstring with new shuffle error type and message
authorKrish Ravindranath <krish.ravindranath@gmail.com>
Mon, 7 May 2018 15:43:25 +0000 (11:43 -0400)
committerKrish Ravindranath <krish.ravindranath@gmail.com>
Mon, 7 May 2018 15:43:25 +0000 (11:43 -0400)
tensorflow/python/estimator/inputs/numpy_io.py
tensorflow/python/estimator/inputs/pandas_io.py

index 5b5eb41..eefc7c7 100644 (file)
@@ -136,7 +136,8 @@ def numpy_input_fn(x,
       values in `x` have same shape).
     ValueError: if duplicate keys are in both `x` and `y` when `y` is a dict.
     ValueError: if x or y is an empty dict.
-    TypeError: `x` is not a dict or array, or if `shuffle` is not bool.
+    TypeError: `x` is not a dict or array.
+    ValueError: if 'shuffle' is not provided or a bool.
   """
   if not isinstance(shuffle, bool):
     raise ValueError('shuffle must be provided and explicitly set as boolean '
index 16825e0..1ed6ed4 100644 (file)
@@ -68,7 +68,7 @@ def pandas_input_fn(x,
   Raises:
     ValueError: if `x` already contains a column with the same name as `y`, or
       if the indexes of `x` and `y` don't match.
-    TypeError: `shuffle` is not bool.
+    ValueError: if 'shuffle' is not provided or a bool.
   """
   if not HAS_PANDAS:
     raise TypeError(