Write a Python script to download and unpack the MNIST dataset (1).
发布时间
阅读量:
阅读量
UpdateTime:201706011
filepath, _ = urllib.request.urlretrieve(SOURCE_URL + filename, filepath)
statinfo = os.stat(filepath)
AI写代码python
运行
随后采用以下代码对数据集(uzip)进行解压操作:
cmd = ['gzip', '-d', target_path]
print('Unzip ', target_path)
subprocess.call(cmd)
AI写代码python
运行
二、环境
1、Ubuntu系统:<>
2、Anaconda2版本:<>
三、代码
# Copyright 20170611 . All Rights Reserved.
# Prerequisites:
# Python 2.7
# gzip, subprocess, numpy
#
# ============================
全部评论 (0)
还没有任何评论哟~
