From bc8e845f7339303aa49a5ca03ad9e2c37ca5c2e2 Mon Sep 17 00:00:00 2001 From: yyong119 Date: Tue, 24 Jul 2018 20:38:16 +0800 Subject: [PATCH] fix path problem of the dataset --- 1_NeuralNetwork&DeepLearning/Week2/lr_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1_NeuralNetwork&DeepLearning/Week2/lr_utils.py b/1_NeuralNetwork&DeepLearning/Week2/lr_utils.py index 0840949..c1c1619 100644 --- a/1_NeuralNetwork&DeepLearning/Week2/lr_utils.py +++ b/1_NeuralNetwork&DeepLearning/Week2/lr_utils.py @@ -3,11 +3,11 @@ def load_dataset(): - train_dataset = h5py.File('datasets/train_catvnoncat.h5', "r") + train_dataset = h5py.File('data/train_catvnoncat.h5', "r") train_set_x_orig = np.array(train_dataset["train_set_x"][:]) # your train set features train_set_y_orig = np.array(train_dataset["train_set_y"][:]) # your train set labels - test_dataset = h5py.File('datasets/test_catvnoncat.h5', "r") + test_dataset = h5py.File('data/test_catvnoncat.h5', "r") test_set_x_orig = np.array(test_dataset["test_set_x"][:]) # your test set features test_set_y_orig = np.array(test_dataset["test_set_y"][:]) # your test set labels