Как исправить ошибку ввода-вывода в ноутбуке Jupyter - PullRequest
0 голосов
/ 11 января 2019

При кодировании в ноутбуке jupyter для сети lstm произошла следующая ошибка. Я опробовал все способы, которые были упомянуты в различных источниках и сайтах в Интернете. Кто-нибудь может мне помочь исправить ошибку.

IOError         Traceback (most recent call last)
<ipython-input-11-37b5695a796b> in <module>()
      5 import os
      6 for file in os.listdir("logs/lstm1layer/jagmin"):
----> 7     model.load_weights("logs/lstm1layer/jagmin"+ file)
      8     testPredict = model.predict(test)
      9       #invert predictions

/home/student/.local/lib/python2.7/site-packages/keras/engine/network.pyc in load_weights(self, filepath, by_name, skip_mismatch, reshape)
   1155         if h5py is None:
   1156             raise ImportError('`load_weights` requires h5py.')
-> 1157         with h5py.File(filepath, mode='r') as f:
   1158             if 'layer_names' not in f.attrs and 'model_weights' in f:
   1159                 f = f['model_weights']

/home/student/.local/lib/python2.7/site-packages/h5py/_hl/files.pyc in __init__(self, name, mode, driver, libver, userblock_size, swmr, **kwds)
    310             with phil:
    311                 fapl = make_fapl(driver, libver, **kwds)
--> 312                 fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
    313 
    314                 if swmr_support:

/home/student/.local/lib/python2.7/site-packages/h5py/_hl/files.pyc in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
    140         if swmr and swmr_support:
    141             flags |= h5f.ACC_SWMR_READ
--> 142         fid = h5f.open(name, flags, fapl=fapl)
    143     elif mode == 'r+':
    144         fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper()

h5py/h5f.pyx in h5py.h5f.open()

IOError: Unable to open file (unable to open file: name = 'logs/lstm1layer/jagmincheckpoint-08.hdf5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...