Skip to content

Commit

Permalink
Deprecate load_csv (#4374)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrytangyuan authored and andrewharp committed Sep 16, 2016
1 parent adb06cb commit 2d42675
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tensorflow/contrib/learn/python/learn/datasets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,6 @@
Datasets = collections.namedtuple('Datasets', ['train', 'validation', 'test'])


@deprecated('2016-09-15', 'Please use load_csv_{with|without}_header instead.')
def load_csv(filename, target_dtype, target_column=-1, has_header=True):
"""Load dataset from CSV file."""
if has_header:
return load_csv_with_header(filename=filename,
target_dtype=target_dtype,
features_dtype=np.float64,
target_column=target_column)
else:
return load_csv_without_header(filename=filename,
target_dtype=target_dtype,
features_dtype=np.float64,
target_column=target_column)


def load_csv_with_header(filename,
target_dtype,
features_dtype,
Expand Down

0 comments on commit 2d42675

Please sign in to comment.