我正在尝试从here导入python中的coursera catvnoncat数据集。
我运行了以下代码
with h5py.File("https://www.floydhub.com/deeplearningai/datasets/cat-vs-noncat/1/train_catvnoncat.h5","r") as hdf:
ls=list(hdf.keys())
print(" Dataset in file",ls)
h5py.File("https://www.floydhub.com/deeplearningai/datasets/cat-vs-noncat/1/train_catvnoncat.h5","r") as hdf:
ls=list(hdf.keys())
print(" Dataset in file",ls)
我想打印导入的数据集,但得到:
OSError:OSError:无法打开文件(无法打开文件:name ='https://www.floydhub.com/deeplearningai/datasets/cat-vs-noncat/1/train_catvnoncat.h5',errno = 22,error message ='Invalid arguments',flags = 0,o_flags = 0)