---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
/anaconda3/lib/python3.6/site-packages/scipy/io/matlab/mio.py in _open_file(file_like, appendmat)
30 try:
---> 31 return open(file_like, 'rb'), True
32 except IOError:
FileNotFoundError: [Errno 2] No such file or directory: 'datasets/data.mat'
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
<ipython-input-3-a9a84d38b990> in <module>
----> 1 train_X, train_Y, test_X, test_Y = load_2D_dataset()
~/Desktop/Neural Net Forecasting/reg_utils.py in load_2D_dataset()
322
323 def load_2D_dataset():
--> 324 data = scipy.io.loadmat('datasets/data.mat')
325 train_X = data['X'].T
326 train_Y = data['y'].T
/anaconda3/lib/python3.6/site-packages/scipy/io/matlab/mio.py in loadmat(file_name, mdict, appendmat, **kwargs)
205 """
206 variable_names = kwargs.pop('variable_names', None)
--> 207 MR, file_opened = mat_reader_factory(file_name, appendmat, **kwargs)
208 matfile_dict = MR.get_variables(variable_names)
209 if mdict is not None:
/anaconda3/lib/python3.6/site-packages/scipy/io/matlab/mio.py in mat_reader_factory(file_name, appendmat, **kwargs)
60
61 """
---> 62 byte_stream, file_opened = _open_file(file_name, appendmat)
63 mjv, mnv = get_matfile_version(byte_stream)
64 if mjv == 0:
/anaconda3/lib/python3.6/site-packages/scipy/io/matlab/mio.py in _open_file(file_like, appendmat)
35 if appendmat and not file_like.endswith('.mat'):
36 file_like += '.mat'
---> 37 return open(file_like, 'rb'), True
38 else:
39 raise IOError('Reader needs file name or open file-like object')
FileNotFoundError: [Errno 2] No such file or directory: 'datasets/data.mat'