<ul id="qxxfc"><fieldset id="qxxfc"><tr id="qxxfc"></tr></fieldset></ul>


      *
      找到本地keras目錄下的mnist.py文件
      通常在這個(gè)目錄下。
      ..\Anaconda3\Lib\site-packages\keras\datasets

      *
      下載mnist.npz文件到本地
      下載鏈接如下。
      https://pan.baidu.com/s/1C3c2Vn-_616GqeEn7hQQ2Q
      <https://pan.baidu.com/s/1C3c2Vn-_616GqeEn7hQQ2Q>

      *
      修改mnist.py文件為以下內(nèi)容,并保存
      from __future__ import absolute_import from __future__ import division from
      __future__ import print_function from ..utils.data_utils import get_file import
      numpy as np #cui 2018.07.08,修改 def load_data(path='mnist.npz'): """Loads the
      MNIST dataset. # Arguments path: path where to cache the dataset locally
      (relative to ~/.keras/datasets). # Returns Tuple of Numpy arrays: `(x_train,
      y_train), (x_test, y_test)`. """ path = 'E:/Data/Mnist/mnist.npz'
      #此處的path為你剛剛防止mnist.py的目錄。注意斜杠 f = np.load(path) x_train, y_train =
      f['x_train'], f['y_train'] x_test, y_test = f['x_test'], f['y_test'] f.close()
      return (x_train, y_train), (x_test, y_test)
      ** OK,去盡請(qǐng)使用吧 **

      友情鏈接
      ioDraw流程圖
      API參考文檔
      OK工具箱
      云服務(wù)器優(yōu)惠
      阿里云優(yōu)惠券
      騰訊云優(yōu)惠券
      京東云優(yōu)惠券
      站點(diǎn)信息
      問題反饋
      郵箱:[email protected]
      QQ群:637538335
      關(guān)注微信

        <ul id="qxxfc"><fieldset id="qxxfc"><tr id="qxxfc"></tr></fieldset></ul>
          123操屄网 | 日本不卡专区 | 啊灬啊灬啊灬快灬深用力男女 | 五用丁香花婷婷开心 | 小龙女┅┅快┅┅用力啊 | 亚洲网站在线观看 | 少妇口述疯狂刺激的交换经历 | 无码视频播放 | caobizaixian | 欧美午夜片欧美片在线观看 |