Commit 2066a146 authored by albus7's avatar albus7 Committed by Taylor Robie
Browse files

Update data_download.py (#5674)

input_url doesn't get correct url string in Windows. The os.path.join() function add "\\" to the path, and it resulted invalid URL for the data file.
parent ee9e3636
...@@ -47,7 +47,7 @@ NPZ_FILE = "HIGGS.csv.gz.npz" # numpy compressed file to contain "data" array. ...@@ -47,7 +47,7 @@ NPZ_FILE = "HIGGS.csv.gz.npz" # numpy compressed file to contain "data" array.
def _download_higgs_data_and_save_npz(data_dir): def _download_higgs_data_and_save_npz(data_dir):
"""Download higgs data and store as a numpy compressed file.""" """Download higgs data and store as a numpy compressed file."""
input_url = os.path.join(URL_ROOT, INPUT_FILE) input_url = URL_ROOT + "/" + INPUT_FILE
np_filename = os.path.join(data_dir, NPZ_FILE) np_filename = os.path.join(data_dir, NPZ_FILE)
if tf.gfile.Exists(np_filename): if tf.gfile.Exists(np_filename):
raise ValueError("data_dir already has the processed data file: {}".format( raise ValueError("data_dir already has the processed data file: {}".format(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment